Fixed plugin being disabled on older versions.

This commit is contained in:
Fernando Pettinelli 2021-01-02 16:15:50 -03:00
parent a6c8bfc05e
commit 94f0e54c91

View File

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