mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 13:15:28 +01:00
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.
This commit is contained in:
parent
23f4e66a02
commit
a8655aa669
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user