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:
Phoenix616 2018-05-15 23:58:34 +01:00
parent 036d309965
commit c39720b449

View File

@ -290,9 +290,6 @@ public class MaterialUtil {
}
itemStack = new ItemStack(material);
if (data == null && durability > 0 && material.getMaxDurability() == 0) {
data = material.getNewData((byte) durability);
}
if (data != null) {
itemStack.setData(data);
durability = data.getData();