Browse Source

Update to sparsetype parsing

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

7
src/engine/objects/ItemTemplate.java

@ -173,9 +173,10 @@ public class ItemTemplate {
JSONObject obj_sparse_json = jsonObject.getJSONObject("obj_sparse_data"); JSONObject obj_sparse_json = jsonObject.getJSONObject("obj_sparse_data");
for (String key : obj_sparse_json.keySet()) { for (Object key : obj_sparse_json.keySet()) {
String sparseValue = obj_sparse_json.getString(key); String sparseType = key.toString();
obj_sparse_data.put(key, sparseValue); Object sparseValue = obj_sparse_json.get(sparseType);
obj_sparse_data.put(sparseType, sparseValue.toString());
} }
// Banes are defined by their sparse data field // Banes are defined by their sparse data field

Loading…
Cancel
Save