Updated database object

This commit is contained in:
tastybento 2018-05-29 08:16:08 -07:00
parent 35d9e418fe
commit ac9ac426d9

View File

@ -46,7 +46,7 @@ public class LevelsData implements DataObject {
} }
public Long getLevel(World world) { public Long getLevel(World world) {
return levels.getOrDefault(world.getName(), 0L); return world == null ? 0L : levels.getOrDefault(world.getName(), 0L);
} }
/** /**