Skip to content

Commit

Permalink
Fix: save json with wrapper
Browse files Browse the repository at this point in the history
Previously it was missing an object wrapper for data & presumable
future stuff

Fix: save json with wrapper

Previously it was missing an object wrapper for data & presumable
future stuff
  • Loading branch information
voidpointer0x00 committed Apr 8, 2023
1 parent 687212c commit 8b68ccf
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public static void save(final Map<UUID, AutoWhitelistNumber> autoWhitelist, fina
jsonAutoWhitelistEntry.addProperty("timesAutoWhitelisted", timesAutoWhitelisted.get());
jsonAutoWhitelist.add(jsonAutoWhitelistEntry);
});
save(jsonAutoWhitelist, destination);
final JsonObject dataAndMeta = new JsonObject();
dataAndMeta.add("autoWhitelist", jsonAutoWhitelist);
save(dataAndMeta, destination);
}
}

0 comments on commit 8b68ccf

Please sign in to comment.