Browse Source

Update to sparsetype parsing

combat-2
MagicBot 8 months ago
parent
commit
fcbb9b0cf1
  1. 7
      src/engine/objects/ItemTemplate.java

7
src/engine/objects/ItemTemplate.java

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

Loading…
Cancel
Save