Fixed an NPE

This commit is contained in:
Jules 2022-02-06 22:17:04 +01:00
parent d0a64850fe
commit be6d181c08

View File

@ -247,7 +247,7 @@ public class PlayerData extends OfflinePlayerData implements Closable, Experienc
@Override @Override
public int getClaims(ExperienceObject object, ExperienceTable table, ExperienceItem item) { public int getClaims(ExperienceObject object, ExperienceTable table, ExperienceItem item) {
String key = object.getKey() + "." + table.getId() + "." + item.getId(); String key = object.getKey() + "." + table.getId() + "." + item.getId();
return tableItemClaims.get(key); return tableItemClaims.getOrDefault(key, 0);
} }
@Override @Override