mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-11-25 12:15:55 +01:00
Additional lower case world naming.
https://github.com/BentoBoxWorld/Level/issues/172
This commit is contained in:
parent
811918eec6
commit
507cefd128
@ -226,7 +226,7 @@ public class LevelsData implements DataObject {
|
||||
Map<Material, Integer> count = new EnumMap<>(Material.class);
|
||||
uwCount.forEach(m -> count.put(m, uwCount.count(m)));
|
||||
|
||||
this.uwCount.put(world.getName(), count);
|
||||
this.uwCount.put(world.getName().toLowerCase(Locale.ENGLISH), count);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -237,7 +237,7 @@ public class LevelsData implements DataObject {
|
||||
Map<Material, Integer> count = new EnumMap<>(Material.class);
|
||||
mdCount.forEach(m -> count.put(m, mdCount.count(m)));
|
||||
|
||||
this.mdCount.put(world.getName(), count);
|
||||
this.mdCount.put(world.getName().toLowerCase(Locale.ENGLISH), count);
|
||||
|
||||
}
|
||||
|
||||
@ -247,7 +247,7 @@ public class LevelsData implements DataObject {
|
||||
*/
|
||||
public Map<Material, Integer> getUwCount(World world) {
|
||||
initialize();
|
||||
return uwCount.getOrDefault(world.getName(), Collections.emptyMap());
|
||||
return uwCount.getOrDefault(world.getName().toLowerCase(Locale.ENGLISH), Collections.emptyMap());
|
||||
}
|
||||
|
||||
/**
|
||||
@ -256,7 +256,7 @@ public class LevelsData implements DataObject {
|
||||
*/
|
||||
public Map<Material, Integer> getMdCount(World world) {
|
||||
initialize();
|
||||
return mdCount.getOrDefault(world.getName(), Collections.emptyMap());
|
||||
return mdCount.getOrDefault(world.getName().toLowerCase(Locale.ENGLISH), Collections.emptyMap());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user