Update to sparsetype parsing

This commit is contained in:
2024-04-22 13:23:18 -04:00
parent 576f4af433
commit d0a837783e
+4 -3
View File
@@ -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