mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Local JSONParser Object
This commit is contained in:
parent
e306232933
commit
ef32a361ab
@ -291,7 +291,8 @@ public class BlockStorage {
|
||||
|
||||
if (json != null && json.length() > 2) {
|
||||
try {
|
||||
JSONObject obj = (JSONObject) getParser().parse(json);
|
||||
JSONParser parser = new JSONParser();
|
||||
JSONObject obj = (JSONObject) parser.parse(json);
|
||||
for (Object entry: obj.entrySet()) {
|
||||
map.put(entry.toString(), obj.get(entry).toString());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user