From 5f8addbb5b9f9b0fbeefed0fc824d4af29526ccf Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 20 Jul 2021 20:49:13 +0100 Subject: [PATCH] Fix #1185 TODO: fix door hinge placement on rotate/flip sometimes --- .../worldedit/extent/transform/BlockTransformExtent.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/transform/BlockTransformExtent.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/transform/BlockTransformExtent.java index 687570553..53bf5cacb 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/transform/BlockTransformExtent.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/transform/BlockTransformExtent.java @@ -165,7 +165,12 @@ public class BlockTransformExtent extends ResettableExtent { return adapt(UP, DOWN); } if (values.contains("left")) { - return adapt(0L, combine(EAST, WEST), combine(NORTH, SOUTH)); + if (key == PropertyKey.SHAPE) { + return adapt(combine(EAST, WEST), combine(NORTH, SOUTH)); + } else if (key == PropertyKey.HINGE) { + //TODO: hinges are slightly funky still + return adapt(combine(NORTH, EAST), combine(SOUTH, WEST)); + } } if (key == PropertyKey.ROTATION) { List directions = new ArrayList<>();