Fix a small mistake with the enum check.

This commit is contained in:
Fernando Pettinelli 2020-12-22 12:21:42 -03:00
parent 1c90e59327
commit a8459f53b4
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ public class VoidGenerator extends ChunkGenerator {
switch (world.getEnvironment()) {
case NORMAL:
biome = Arrays.stream(CompatibleBiome.values())
.filter(compatibleBiome -> compatibleBiome.getBiome().equals(configLoad.getString("Island.Biome.Default.Type", "PLAINS").toUpperCase()))
.filter(compatibleBiome -> compatibleBiome.getBiome().name().equals(configLoad.getString("Island.Biome.Default.Type", "PLAINS").toUpperCase()))
.findFirst()
.orElse(CompatibleBiome.PLAINS).getBiome();
break;