Update to sparsetype parsing

This commit is contained in:
2024-04-22 12:56:01 -04:00
parent 4f115291eb
commit fcbb9b0cf1
+4 -3
View File
@@ -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");