Browse Source

Migration to org.json

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

4
src/engine/objects/ItemTemplate.java

@ -546,8 +546,8 @@ 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 (String sparseType : rune_sparse_json.keySet()) {
String sparseValue = rune_sparse_json.getString(sparseType); Object sparseValue = rune_sparse_json.getString(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