forked from MagicBane/Server
Fix for mixed type values
This commit is contained in:
@@ -169,8 +169,8 @@ public class ItemTemplate {
|
|||||||
|
|
||||||
for (Object key : obj_sparse_json.keySet()) {
|
for (Object key : obj_sparse_json.keySet()) {
|
||||||
String sparseType = (String) key;
|
String sparseType = (String) key;
|
||||||
String sparseValue = (String) obj_sparse_json.get(sparseType);
|
Object sparseValue = obj_sparse_json.get(sparseType);
|
||||||
obj_sparse_data.put(sparseType, sparseValue);
|
obj_sparse_data.put(sparseType, sparseValue.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reading float values
|
// Reading float values
|
||||||
@@ -499,8 +499,8 @@ public class ItemTemplate {
|
|||||||
|
|
||||||
for (Object key : rune_sparse_json.keySet()) {
|
for (Object key : rune_sparse_json.keySet()) {
|
||||||
String sparseType = (String) key;
|
String sparseType = (String) key;
|
||||||
String sparseValue = (String) rune_sparse_json.get(sparseType);
|
Object sparseValue = rune_sparse_json.get(sparseType);
|
||||||
rune_sparse_data.put(sparseType, sparseValue);
|
rune_sparse_data.put(sparseType, sparseValue.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
JSONArray attr_adj_json = (JSONArray) jsonObject.get("rune_attr_adj");
|
JSONArray attr_adj_json = (JSONArray) jsonObject.get("rune_attr_adj");
|
||||||
|
|||||||
Reference in New Issue
Block a user