Browse Source

Migration to org.json

combat-2
MagicBot 7 months ago
parent
commit
475ccaff0c
  1. 4
      src/engine/objects/ItemTemplate.java

4
src/engine/objects/ItemTemplate.java

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

Loading…
Cancel
Save