From eb489bd21d815cb600e2d173ed629f310b60a9ef Mon Sep 17 00:00:00 2001 From: Wizjany Date: Thu, 31 Jan 2013 12:46:32 -0500 Subject: [PATCH] Add wooden buttons to BlockData --- 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 a9f8f7e94..f9510bd02 100644 --- a/src/main/java/com/sk89q/worldedit/blocks/BlockData.java +++ b/src/main/java/com/sk89q/worldedit/blocks/BlockData.java @@ -91,6 +91,7 @@ public final class BlockData { case BlockID.LEVER: case BlockID.STONE_BUTTON: + case BlockID.WOODEN_BUTTON: int thrown = data & 0x8; int withoutThrown = data & ~0x8; switch (withoutThrown) { @@ -265,6 +266,7 @@ public final class BlockData { case BlockID.LEVER: case BlockID.STONE_BUTTON: + case BlockID.WOODEN_BUTTON: int thrown = data & 0x8; int withoutThrown = data & ~0x8; switch (withoutThrown) { @@ -417,6 +419,7 @@ public final class BlockData { case BlockID.LEVER: case BlockID.STONE_BUTTON: + case BlockID.WOODEN_BUTTON: switch (data & ~0x8) { case 1: return data + flipX; case 2: return data - flipX;