Fixed missing lower case conversion for world name.

This commit is contained in:
tastybento 2020-07-20 23:17:09 -07:00
parent 6800bdd3ce
commit 811918eec6

View File

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