mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-24 02:56:02 +01:00
Finally, no more tricks for that!
This commit is contained in:
parent
b5529bec93
commit
a8e8078348
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user