mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-11-27 20:46:19 +01:00
Updated database object
This commit is contained in:
parent
35d9e418fe
commit
ac9ac426d9
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user