diff --git a/src/de/jaschastarke/minecraft/limitedcreative/store/Fallback.java b/src/de/jaschastarke/minecraft/limitedcreative/store/Fallback.java index f817c15..7835c75 100644 --- a/src/de/jaschastarke/minecraft/limitedcreative/store/Fallback.java +++ b/src/de/jaschastarke/minecraft/limitedcreative/store/Fallback.java @@ -78,9 +78,11 @@ public class Fallback { return section.getItemStack(path); } else { ConfigurationSection s = section.getConfigurationSection(path); - Map serialize = s.getValues(false); - serialize.remove("enchantments"); - ItemStack result = ItemStack.deserialize(serialize); + Material type = Material.getMaterial(s.getString("type")); + short damage = new Integer(s.getInt("damage", 0)).shortValue(); + int amount = s.getInt("amaount", 1); + + ItemStack result = new ItemStack(type, amount, damage); Map item = section.getConfigurationSection(path).getValues(false); item.remove("enchantments"); if (s.contains("enchantments")) {