Finally, no more tricks for that!

This commit is contained in:
Acrobot 2013-02-07 14:16:50 +01:00
parent b5529bec93
commit a8e8078348

View File

@ -121,7 +121,7 @@ public class MaterialUtil {
name.append(':').append(itemStack.getDurability()); name.append(':').append(itemStack.getDurability());
} }
if (!itemStack.hasItemMeta()) { if (itemStack.hasItemMeta()) {
name.append('#').append(Metadata.getItemCode(itemStack)); name.append('#').append(Metadata.getItemCode(itemStack));
} }
@ -359,10 +359,10 @@ public class MaterialUtil {
} }
if (material == Material.INK_SACK) { 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) { } else if (materialData instanceof Tree) {
try { try {
return TreeSpecies.valueOf(type).getData(); return TreeSpecies.valueOf(type).getData();