From dda429d82608af527bc1b2ee10fe9678eab57172 Mon Sep 17 00:00:00 2001 From: Clayton Date: Sun, 28 Sep 2014 00:41:18 -0400 Subject: [PATCH] Add Stained Glass to usesData HashSet fixes an issue with held stained glass' damage value always being set to zero (white) when using the item-durability: false option --- src/main/java/com/sk89q/worldedit/blocks/BlockType.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/sk89q/worldedit/blocks/BlockType.java b/src/main/java/com/sk89q/worldedit/blocks/BlockType.java index 4e00f8eac..d69c7cd34 100644 --- a/src/main/java/com/sk89q/worldedit/blocks/BlockType.java +++ b/src/main/java/com/sk89q/worldedit/blocks/BlockType.java @@ -786,6 +786,7 @@ public enum BlockType { usesData.add(BlockID.DROPPER); usesData.add(BlockID.HOPPER); usesData.add(BlockID.STAINED_CLAY); + usesData.add(BlockID.STAINED_GLASS); usesData.add(BlockID.STAINED_GLASS_PANE); usesData.add(BlockID.HAY_BLOCK); usesData.add(BlockID.CARPET);