From cdc011eb2dfe0b76082ad5a67e05e137bf520ffd Mon Sep 17 00:00:00 2001 From: Tony Date: Sun, 3 Apr 2011 20:23:38 -0500 Subject: [PATCH] Add cycling for wall signs and steps --- src/com/sk89q/worldedit/tools/BlockDataCyler.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/com/sk89q/worldedit/tools/BlockDataCyler.java b/src/com/sk89q/worldedit/tools/BlockDataCyler.java index b8616e037..f5fadb6d7 100644 --- a/src/com/sk89q/worldedit/tools/BlockDataCyler.java +++ b/src/com/sk89q/worldedit/tools/BlockDataCyler.java @@ -64,7 +64,13 @@ public class BlockDataCyler implements BlockTool { } else if (type == BlockID.WOODEN_STAIRS || type == BlockID.COBBLESTONE_STAIRS) { data = (data + 1) % 4; } else if (type == BlockID.SIGN_POST) { - data = (data + 1) % 16; + data = (data + 1) % 16; + } else if (type == BlockID.WALL_SIGN) { + data = (data + 1) % 4; + } else if (type == BlockID.STEP) { + data = (data + 1) % 3; + } else if (type == BlockID.DOUBLE_STEP) { + data = (data + 1) % 3; } else if (type == BlockID.FURNACE || type == BlockID.BURNING_FURNACE || type == BlockID.DISPENSER) { data = (data + 1) % 4 + 2;