Fix bug when checking the environment

This commit is contained in:
Daniel Ciepluch 2020-03-29 19:38:24 +02:00 committed by Brianna
parent 63219b0cd6
commit b6d92c1eb5

View File

@ -27,7 +27,9 @@ public class VoidGenerator extends ChunkGenerator {
final ConfigurationSection worldSection = configLoad.getConfigurationSection("Island.World");
for (IslandWorld worldList : IslandWorld.values()) {
if (world.getEnvironment() == worldList.getUncheckedEnvironment()) {
if (world.getEnvironment() == World.Environment.NETHER
|| world.getEnvironment() == World.Environment.NORMAL
|| world.getEnvironment() == World.Environment.THE_END) {
ConfigurationSection section = worldSection.getConfigurationSection(worldList.name());