From f7c5782fa9319983826a163543649d641870bcce Mon Sep 17 00:00:00 2001 From: Wizjany Date: Sat, 17 Sep 2011 14:11:59 -0400 Subject: [PATCH] Added data support for silverfish blocks. --- src/main/java/com/sk89q/worldedit/blocks/BlockType.java | 1 + src/main/java/com/sk89q/worldedit/data/BlockData.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/com/sk89q/worldedit/blocks/BlockType.java b/src/main/java/com/sk89q/worldedit/blocks/BlockType.java index 461e93016..33252cc28 100644 --- a/src/main/java/com/sk89q/worldedit/blocks/BlockType.java +++ b/src/main/java/com/sk89q/worldedit/blocks/BlockType.java @@ -432,6 +432,7 @@ public enum BlockType { usesData.add(BlockID.REDSTONE_REPEATER_OFF); usesData.add(BlockID.REDSTONE_REPEATER_ON); usesData.add(BlockID.TRAP_DOOR); + usesData.add(BlockID.SILVERFISH_BLOCK); usesData.add(BlockID.STONE_BRICK); usesData.add(BlockID.RED_MUSHROOM_CAP); usesData.add(BlockID.BROWN_MUSHROOM_CAP); diff --git a/src/main/java/com/sk89q/worldedit/data/BlockData.java b/src/main/java/com/sk89q/worldedit/data/BlockData.java index 3a1ccf8f8..45143eea5 100644 --- a/src/main/java/com/sk89q/worldedit/data/BlockData.java +++ b/src/main/java/com/sk89q/worldedit/data/BlockData.java @@ -493,6 +493,7 @@ public final class BlockData { case BlockID.LOG: case BlockID.LONG_GRASS: case BlockID.STONE_BRICK: + case BlockID.SILVERFISH_BLOCK: return (data + increment) % 3; case BlockID.TORCH: