From 7d24236dfef4b71e6de33e11cc9edb4c15bc5a49 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 5 Sep 2017 22:01:36 +1000 Subject: [PATCH] * --- .../extent/transform/BlockTransformExtent.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/com/sk89q/worldedit/extent/transform/BlockTransformExtent.java b/core/src/main/java/com/sk89q/worldedit/extent/transform/BlockTransformExtent.java index 7bf8fe62..803a467e 100644 --- a/core/src/main/java/com/sk89q/worldedit/extent/transform/BlockTransformExtent.java +++ b/core/src/main/java/com/sk89q/worldedit/extent/transform/BlockTransformExtent.java @@ -88,9 +88,9 @@ public class BlockTransformExtent extends ResettableExtent { if (direction != null) { Vector applyAbsolute = transform.apply(direction.toVector()); Vector applyOrigin = transform.apply(Vector.ZERO); - applyAbsolute.mutX(applyAbsolute.getBlockX() - applyOrigin.getBlockX()); - applyAbsolute.mutY(applyAbsolute.getBlockY() - applyOrigin.getBlockY()); - applyAbsolute.mutZ(applyAbsolute.getBlockZ() - applyOrigin.getBlockZ()); + applyAbsolute.mutX(applyAbsolute.getX() - applyOrigin.getX()); + applyAbsolute.mutY(applyAbsolute.getY() - applyOrigin.getY()); + applyAbsolute.mutZ(applyAbsolute.getZ() - applyOrigin.getZ()); Direction newDirection = Direction.findClosest(applyAbsolute, Direction.Flag.CARDINAL | Direction.Flag.ORDINAL | Direction.Flag.SECONDARY_ORDINAL); @@ -117,9 +117,9 @@ public class BlockTransformExtent extends ResettableExtent { if (direction != null) { Vector applyAbsolute = transformInverse.apply(direction.toVector()); Vector applyOrigin = transformInverse.apply(Vector.ZERO); - applyAbsolute.mutX(applyAbsolute.getBlockX() - applyOrigin.getBlockX()); - applyAbsolute.mutY(applyAbsolute.getBlockY() - applyOrigin.getBlockY()); - applyAbsolute.mutZ(applyAbsolute.getBlockZ() - applyOrigin.getBlockZ()); + applyAbsolute.mutX(applyAbsolute.getX() - applyOrigin.getX()); + applyAbsolute.mutY(applyAbsolute.getY() - applyOrigin.getY()); + applyAbsolute.mutZ(applyAbsolute.getZ() - applyOrigin.getZ()); Direction newDirection = Direction.findClosest(applyAbsolute, Direction.Flag.CARDINAL | Direction.Flag.ORDINAL | Direction.Flag.SECONDARY_ORDINAL);