From a8655aa669c8094116f581ec7bec73a5a0ec47b5 Mon Sep 17 00:00:00 2001 From: BONNe Date: Thu, 27 Jun 2019 23:58:36 +0300 Subject: [PATCH] Fix error on bentobox version check (#792) Comes from #149 We cannot ask GameSettings for The End or Nether worlds, as if they are disabled, then they do not have settings. --- .../bentobox/commands/BentoBoxVersionCommand.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/world/bentobox/bentobox/commands/BentoBoxVersionCommand.java b/src/main/java/world/bentobox/bentobox/commands/BentoBoxVersionCommand.java index 902e2d1c9..c42e2fafc 100644 --- a/src/main/java/world/bentobox/bentobox/commands/BentoBoxVersionCommand.java +++ b/src/main/java/world/bentobox/bentobox/commands/BentoBoxVersionCommand.java @@ -62,16 +62,16 @@ public class BentoBoxVersionCommand extends CompositeCommand { &c = dimension does not exist */ // Get the nether color - if (addon.getNetherWorld() == null || !getIWM().isNetherGenerate(addon.getNetherWorld())) { + if (addon.getNetherWorld() == null || !getIWM().isNetherGenerate(addon.getOverWorld())) { netherColor = GAMEWORLD_COLOR_NOT_EXIST; - } else if (!getIWM().isNetherIslands(addon.getNetherWorld())) { + } else if (!getIWM().isNetherIslands(addon.getOverWorld())) { netherColor = GAMEWORLD_COLOR_EXISTS_NO_ISLANDS; } // Get the nether color - if (addon.getEndWorld() == null || !getIWM().isEndGenerate(addon.getEndWorld())) { + if (addon.getEndWorld() == null || !getIWM().isEndGenerate(addon.getOverWorld())) { endColor = GAMEWORLD_COLOR_NOT_EXIST; - } else if (!getIWM().isEndIslands(addon.getEndWorld())) { + } else if (!getIWM().isEndIslands(addon.getOverWorld())) { endColor = GAMEWORLD_COLOR_EXISTS_NO_ISLANDS; } }