From 811918eec6c727bc01a592e78f6e31863182badd Mon Sep 17 00:00:00 2001 From: tastybento Date: Mon, 20 Jul 2020 23:17:09 -0700 Subject: [PATCH] Fixed missing lower case conversion for world name. --- src/main/java/world/bentobox/level/objects/LevelsData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/level/objects/LevelsData.java b/src/main/java/world/bentobox/level/objects/LevelsData.java index 2c1f7e2..db86d0e 100644 --- a/src/main/java/world/bentobox/level/objects/LevelsData.java +++ b/src/main/java/world/bentobox/level/objects/LevelsData.java @@ -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); } /**