From dbc3053195006768fa0eefcc18bc971587ea2a87 Mon Sep 17 00:00:00 2001 From: Wizjany Date: Wed, 26 Oct 2011 16:50:46 -0400 Subject: [PATCH] Fixed & updated BlockType.usesDamageValue --- src/main/java/com/sk89q/worldedit/blocks/ItemType.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/blocks/ItemType.java b/src/main/java/com/sk89q/worldedit/blocks/ItemType.java index 98ceb60aa..491f6870d 100644 --- a/src/main/java/com/sk89q/worldedit/blocks/ItemType.java +++ b/src/main/java/com/sk89q/worldedit/blocks/ItemType.java @@ -517,7 +517,9 @@ public enum ItemType { * @return */ public static boolean usesDamageValue(int id) { - return id == BlockID.CLOTH - || id == ItemID.INK_SACK; + return id == ItemID.COAL + || id == ItemID.INK_SACK + // for material only, orientation data is not stored in inventory anyway + || BlockType.usesData(id); } }