fix: make jsonObject in PersistentDataUtilities synchronous (hopefully)
This commit is contained in:
@@ -14,8 +14,8 @@ public class PlayersPersistentDataPlugin extends PlayersPlugin.Listener {
|
||||
public static JsonObject playersObject = new JsonObject();
|
||||
|
||||
static {
|
||||
if (PersistentDataUtilities.jsonObject.has("players")) {
|
||||
playersObject = PersistentDataUtilities.jsonObject.get("players").getAsJsonObject();
|
||||
if (PersistentDataUtilities.has("players")) {
|
||||
playersObject = PersistentDataUtilities.get("players").getAsJsonObject();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user