mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-02-04 04:21:19 +01:00
Don't try to get the MaterialData from every damage (Fixes #131)
We will have to add a new way of handling that for 1.13 anyways when data isn't using damage values anymore.
This commit is contained in:
parent
036d309965
commit
c39720b449
@ -290,9 +290,6 @@ public class MaterialUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
itemStack = new ItemStack(material);
|
itemStack = new ItemStack(material);
|
||||||
if (data == null && durability > 0 && material.getMaxDurability() == 0) {
|
|
||||||
data = material.getNewData((byte) durability);
|
|
||||||
}
|
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
itemStack.setData(data);
|
itemStack.setData(data);
|
||||||
durability = data.getData();
|
durability = data.getData();
|
||||||
|
Loading…
Reference in New Issue
Block a user