Browse Source

Update to sparsetype parsing

combat-2
MagicBot 8 months ago
parent
commit
576f4af433
  1. 4
      src/engine/objects/ItemTemplate.java

4
src/engine/objects/ItemTemplate.java

@ -547,8 +547,8 @@ public class ItemTemplate {
for (Object key : rune_sparse_json.keySet()) { for (Object key : rune_sparse_json.keySet()) {
String sparseType = key.toString(); String sparseType = key.toString();
String sparseValue = rune_sparse_json.getString(sparseType); Object sparseValue = rune_sparse_json.get(sparseType);
rune_sparse_data.put(sparseType, sparseValue); rune_sparse_data.put(sparseType, sparseValue.toString());
} }
JSONArray skill_adj_json = (JSONArray) jsonObject.get("rune_skill_adj"); JSONArray skill_adj_json = (JSONArray) jsonObject.get("rune_skill_adj");

Loading…
Cancel
Save