mirror of
https://github.com/songoda/EpicBosses.git
synced 2025-01-03 13:57:36 +01:00
Suppress errors with incorrect material names.
This commit is contained in:
parent
7efd9d89f4
commit
71b7d20086
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user