From af1c600fc92837cc806336424afe1a65bb9b1f44 Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Sat, 5 Nov 2011 17:58:51 +0100 Subject: [PATCH] Non-leaf blocks should no longer show up as leaves in the inventory when using block bags. --- src/main/java/com/sk89q/worldedit/blocks/BlockType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldedit/blocks/BlockType.java b/src/main/java/com/sk89q/worldedit/blocks/BlockType.java index abfd24b3d..4c163e19b 100644 --- a/src/main/java/com/sk89q/worldedit/blocks/BlockType.java +++ b/src/main/java/com/sk89q/worldedit/blocks/BlockType.java @@ -1032,7 +1032,7 @@ public enum BlockType { private static void addIdentities(int type, int maxData) { for (int data = 0; data < maxData; ++data) { - dataBlockBagItems.put(typeDataKey(type, data), new BaseItem(BlockID.LEAVES, (short) data)); + dataBlockBagItems.put(typeDataKey(type, data), new BaseItem(type, (short) data)); } }