mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-09-28 14:37:32 +02: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());
|
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user