Migration to org.json

This commit is contained in:
2024-04-22 12:34:57 -04:00
parent 7604b7b07f
commit 1d847d781b
+2 -2
View File
@@ -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()) {
Object sparseValue = rune_sparse_json.get(sparseType); String sparseValue = rune_sparse_json.getString(sparseType);
rune_sparse_data.put(sparseType, sparseValue.toString()); 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");