From 52f1a7d2d453dd5846e567d2e8f4302f65f23234 Mon Sep 17 00:00:00 2001 From: sk89q Date: Thu, 10 Jul 2014 21:05:16 -0700 Subject: [PATCH] Fix issue with scaling transforms on blocks. --- .../sk89q/worldedit/extent/transform/BlockTransformExtent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldedit/extent/transform/BlockTransformExtent.java b/src/main/java/com/sk89q/worldedit/extent/transform/BlockTransformExtent.java index cf9e9d85e..a0d5ad090 100644 --- a/src/main/java/com/sk89q/worldedit/extent/transform/BlockTransformExtent.java +++ b/src/main/java/com/sk89q/worldedit/extent/transform/BlockTransformExtent.java @@ -155,7 +155,7 @@ public class BlockTransformExtent extends AbstractDelegateExtent { */ @Nullable private static StateValue getNewStateValue(State state, Transform transform, Vector oldDirection) { - Vector newDirection = transform.apply(oldDirection).normalize(); + Vector newDirection = transform.apply(oldDirection).subtract(transform.apply(Vector.ZERO)).normalize(); StateValue newValue = null; double closest = -2; boolean found = false;