From b2aeb2e1f170c2cc75c49a08158a6591297769d7 Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Fri, 15 Jun 2012 00:10:53 +0200 Subject: [PATCH] Added upside-down stairs to //cycle. --- 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 3019146e6..56cdbaef1 100644 --- a/src/main/java/com/sk89q/worldedit/blocks/BlockData.java +++ b/src/main/java/com/sk89q/worldedit/blocks/BlockData.java @@ -628,6 +628,9 @@ public final class BlockData { case BlockID.BRICK_STAIRS: case BlockID.STONE_BRICK_STAIRS: case BlockID.NETHER_BRICK_STAIRS: + if (data > 7) return -1; + return mod((data + increment), 8); + case BlockID.PUMPKIN: case BlockID.JACKOLANTERN: case BlockID.NETHER_WART: