1
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:
mrCookieSlime 2016-12-26 23:57:56 +01:00
parent e306232933
commit ef32a361ab

View File

@ -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());
}