From ca1744aa97815c175997bcc0d0d6c2368c69d9f6 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Mon, 19 Jul 2021 20:33:50 +0100 Subject: [PATCH] Likely fix for rotation issue fixes #996 --- .../sk89q/worldedit/extent/transform/BlockTransformExtent.java | 2 +- 1 file changed, 1 insertion(+), 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 74e0db1a9..687570553 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 @@ -401,7 +401,7 @@ public class BlockTransformExtent extends ResettableExtent { if (isDirectional(property)) { long[] directions = getDirections(property); if (directions != null) { - int oldIndex = property.getIndex(newMaskedId); + int oldIndex = property.getIndex(state.getInternalId()); if (oldIndex >= directions.length) { if (Settings.IMP.ENABLED_COMPONENTS.DEBUG) { LOGGER.warn(String.format("Index outside direction array length found for block:{%s} property:{%s}", state.getBlockType().getId(), property.getName()));