From b2ff0fb2a2113ba3fb6ff0da737ea3827d7b5bf4 Mon Sep 17 00:00:00 2001 From: ragd Date: Fri, 24 Aug 2012 19:46:39 +0200 Subject: [PATCH] Added support for rotating wooden logs --- src/main/java/com/sk89q/worldedit/blocks/BlockData.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/com/sk89q/worldedit/blocks/BlockData.java b/src/main/java/com/sk89q/worldedit/blocks/BlockData.java index 355b6cbc7..a9f8f7e94 100644 --- a/src/main/java/com/sk89q/worldedit/blocks/BlockData.java +++ b/src/main/java/com/sk89q/worldedit/blocks/BlockData.java @@ -143,6 +143,10 @@ public final class BlockData { } break; + case BlockID.LOG: + if (data >= 4 && data <= 11) data ^= 0xc; + break; + case BlockID.REDSTONE_REPEATER_OFF: case BlockID.REDSTONE_REPEATER_ON: int dir = data & 0x03; @@ -313,6 +317,10 @@ public final class BlockData { } break; + case BlockID.LOG: + if (data >= 4 && data <= 11) data ^= 0xc; + break; + case BlockID.REDSTONE_REPEATER_OFF: case BlockID.REDSTONE_REPEATER_ON: int dir = data & 0x03;