From 94f0e54c919a985ef2eb573293660fbbd641fd49 Mon Sep 17 00:00:00 2001 From: Fernando Pettinelli Date: Sat, 2 Jan 2021 16:15:50 -0300 Subject: [PATCH] Fixed plugin being disabled on older versions. --- .../com/songoda/skyblock/world/generator/VoidGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/skyblock/world/generator/VoidGenerator.java b/src/main/java/com/songoda/skyblock/world/generator/VoidGenerator.java index 1a392224..8476dbb3 100644 --- a/src/main/java/com/songoda/skyblock/world/generator/VoidGenerator.java +++ b/src/main/java/com/songoda/skyblock/world/generator/VoidGenerator.java @@ -39,7 +39,7 @@ public class VoidGenerator extends ChunkGenerator { switch (world.getEnvironment()) { case NORMAL: 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() .orElse(CompatibleBiome.PLAINS).getBiome(); break;