Suppress errors with incorrect material names.

This commit is contained in:
Brianna 2019-10-26 14:01:11 -04:00
parent 7efd9d89f4
commit 71b7d20086
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ public class ItemStackHolderConverter implements IConverter<ItemStackHolder, Con
Integer amount = (Integer) configurationSection.get("amount", null);
CompatibleMaterial material = CompatibleMaterial.getMaterial(configurationSection.getString("type", null));
String type = material.getMaterial().name();
String type = material.getMaterial() == null ? "STONE" : material.getMaterial().name();
Short durability = (Short) configurationSection.get("durability", null);
if (material.getData() != -1) durability = (short) material.getData();