Skip to content

Commit

Permalink
Fix structures having improper locations in some instances (#1229)
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher White <[email protected]>
  • Loading branch information
cswhite2000 authored Sep 2, 2023
1 parent 7c71e0d commit 09052d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ public Filter getPassive() {
* @return The offset to use when placing/clearing the structure
*/
public BlockVector getOffset() {
if (position != null) return position.subtract(this.structure.getOrigin()).toBlockVector();
return offset;
if (position != null)
return position.clone().subtract(this.structure.getOrigin()).toBlockVector();
return offset.clone();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Vector getOrigin() {
if (origin == null) {
this.origin = getBounds().getMin();
}
return this.origin;
return this.origin.clone();
}

public Bounds getBounds() {
Expand Down

0 comments on commit 09052d0

Please sign in to comment.