From bcf4204ffc471c9be2505eb519ba36afcb948411 Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Tue, 14 Aug 2012 00:40:11 +0200 Subject: [PATCH] Added tripwire hook to flip/rotate. --- src/main/java/com/sk89q/worldedit/blocks/BlockData.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/sk89q/worldedit/blocks/BlockData.java b/src/main/java/com/sk89q/worldedit/blocks/BlockData.java index 1591257d3..8cd11501b 100644 --- a/src/main/java/com/sk89q/worldedit/blocks/BlockData.java +++ b/src/main/java/com/sk89q/worldedit/blocks/BlockData.java @@ -104,6 +104,7 @@ public final class BlockData { case BlockID.WOODEN_DOOR: case BlockID.IRON_DOOR: case BlockID.COCOA_PLANT: + case BlockID.TRIPWIRE_HOOK: int extra = data & ~0x3; int withoutFlags = data & 0x3; switch (withoutFlags) { @@ -272,6 +273,7 @@ public final class BlockData { case BlockID.WOODEN_DOOR: case BlockID.IRON_DOOR: case BlockID.COCOA_PLANT: + case BlockID.TRIPWIRE_HOOK: int extra = data & ~0x3; int withoutFlags = data & 0x3; switch (withoutFlags) { @@ -509,6 +511,7 @@ public final class BlockData { case BlockID.REDSTONE_REPEATER_OFF: case BlockID.REDSTONE_REPEATER_ON: case BlockID.COCOA_PLANT: + case BlockID.TRIPWIRE_HOOK: switch (data & 0x3) { case 0: case 2: