Browse Source

Update to sparsetype parsing

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

Loading…
Cancel
Save