diff --git a/src/main/java/com/aetherteam/aether/perk/data/ServerPerkData.java b/src/main/java/com/aetherteam/aether/perk/data/ServerPerkData.java index 8ad593ae5..c965869d0 100644 --- a/src/main/java/com/aetherteam/aether/perk/data/ServerPerkData.java +++ b/src/main/java/com/aetherteam/aether/perk/data/ServerPerkData.java @@ -149,8 +149,12 @@ public Map getServerPerkData(MinecraftServer server) { for (Map.Entry serverPerkDataEntry : this.getSavedMap(server).entrySet()) { // Iterates through perk data that is stored by the server world. if (storedUsers.containsKey(serverPerkDataEntry.getKey())) { // Ensures the UUID from the perk data map also exists in the user map. User user = storedUsers.get(serverPerkDataEntry.getKey()); // Gets the User corresponding to the UUID. - if (user != null && this.getVerificationPredicate(serverPerkDataEntry.getValue()).test(user)) { // Double checks whether the User has access to the perk that is currently attached to its UUID. - verifiedPerkData.put(serverPerkDataEntry.getKey(), serverPerkDataEntry.getValue()); // Adds the UUID and perk to the map indicating that the entry pair is verified. + try { + if (user != null && this.getVerificationPredicate(serverPerkDataEntry.getValue()).test(user)) { // Double checks whether the User has access to the perk that is currently attached to its UUID. + verifiedPerkData.put(serverPerkDataEntry.getKey(), serverPerkDataEntry.getValue()); // Adds the UUID and perk to the map indicating that the entry pair is verified. + } + } catch (RuntimeException e) { + Aether.LOGGER.info(e.getMessage()); } } }