Browse Source

Update to sparsetype parsing

combat-2
MagicBot 7 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 { @@ -545,9 +545,10 @@ public class ItemTemplate {
JSONObject rune_sparse_json = jsonObject.getJSONObject("rune_sparse_data");
for (String sparseType : rune_sparse_json.keySet()) {
Object sparseValue = rune_sparse_json.getString(sparseType);
rune_sparse_data.put(sparseType, sparseValue.toString());
for (Object key : rune_sparse_json.keySet()) {
String sparseType = key.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");

Loading…
Cancel
Save