From be6d181c08d109d32129a495e4aadaee0d7509d3 Mon Sep 17 00:00:00 2001 From: Jules Date: Sun, 6 Feb 2022 22:17:04 +0100 Subject: [PATCH] Fixed an NPE --- src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java b/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java index 1f85a8ed..8a59a2eb 100644 --- a/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java +++ b/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java @@ -247,7 +247,7 @@ public class PlayerData extends OfflinePlayerData implements Closable, Experienc @Override public int getClaims(ExperienceObject object, ExperienceTable table, ExperienceItem item) { String key = object.getKey() + "." + table.getId() + "." + item.getId(); - return tableItemClaims.get(key); + return tableItemClaims.getOrDefault(key, 0); } @Override