mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-29 05:35:13 +01:00
Fixed plugin being disabled on older versions.
This commit is contained in:
parent
a6c8bfc05e
commit
94f0e54c91
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user