From a8e80783488876aab968f0b1196976afa2f35ec8 Mon Sep 17 00:00:00 2001 From: Acrobot Date: Thu, 7 Feb 2013 14:16:50 +0100 Subject: [PATCH] Finally, no more tricks for that! --- com/Acrobot/Breeze/Utils/MaterialUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/com/Acrobot/Breeze/Utils/MaterialUtil.java b/com/Acrobot/Breeze/Utils/MaterialUtil.java index 689ba75..71cd470 100644 --- a/com/Acrobot/Breeze/Utils/MaterialUtil.java +++ b/com/Acrobot/Breeze/Utils/MaterialUtil.java @@ -121,7 +121,7 @@ public class MaterialUtil { name.append(':').append(itemStack.getDurability()); } - if (!itemStack.hasItemMeta()) { + if (itemStack.hasItemMeta()) { name.append('#').append(Metadata.getItemCode(itemStack)); } @@ -359,10 +359,10 @@ public class MaterialUtil { } if (material == Material.INK_SACK) { - color = DyeColor.getByData((byte) (15 - color.getData())); + return color.getDyeData(); } - return color.getData(); + return color.getWoolData(); } else if (materialData instanceof Tree) { try { return TreeSpecies.valueOf(type).getData();