diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 4fcedc2a..95e137a4 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -408,12 +408,11 @@ public class ItemTemplate { if (item_type.equals(Enum.ItemType.RUNE)) { - JSONObject attr_adj_json = (JSONObject) jsonObject.get("rune_attr_adj"); + JSONArray attr_adj_json = (JSONArray) jsonObject.get("rune_attr_adj"); + + for (Object attributes : attr_adj_json) { + attributes.toString(); - for (Object key : attr_adj_json.keySet()) { - Enum.AttributeType attributeType = Enum.AttributeType.valueOf((String) key); - int value = ((Long) resist_json.get(key)).intValue(); - rune_attr_adj.put(attributeType, value); } }