forked from MagicBane/Server
Update to sparsetype parsing
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user