BUILDTOOLS-251: Make much of Bukkit locale independent

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2016-06-26 19:32:05 +10:00
parent 861ba7b0e9
commit f155cbbaf2
6 changed files with 13 additions and 13 deletions

View File

@@ -322,7 +322,7 @@ public class CraftBlock implements Block {
return null;
}
return Biome.valueOf(BiomeBase.REGISTRY_ID.b(base).a().toUpperCase());
return Biome.valueOf(BiomeBase.REGISTRY_ID.b(base).a().toUpperCase(java.util.Locale.ENGLISH));
}
public static BiomeBase biomeToBiomeBase(Biome bio) {
@@ -330,7 +330,7 @@ public class CraftBlock implements Block {
return null;
}
return BiomeBase.REGISTRY_ID.get(new MinecraftKey(bio.name().toLowerCase()));
return BiomeBase.REGISTRY_ID.get(new MinecraftKey(bio.name().toLowerCase(java.util.Locale.ENGLISH)));
}
public double getTemperature() {