mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-10 18:38:16 +01:00
Add null check. Not really needed but make Sonar happy.
This commit is contained in:
parent
cbed9ac831
commit
c28ecb1c74
@ -182,13 +182,13 @@ public class IslandWorldManager {
|
||||
gameModes.put(world, gameMode);
|
||||
// Call Multiverse
|
||||
registerToWorldManagementPlugins(world, true, true);
|
||||
if (settings.isNetherGenerate()) {
|
||||
if (settings.isNetherGenerate() && gameMode.getNetherWorld() != null) {
|
||||
gameModes.put(gameMode.getNetherWorld(), gameMode);
|
||||
if (settings.isNetherIslands()) {
|
||||
registerToWorldManagementPlugins(gameMode.getNetherWorld(), true, true);
|
||||
}
|
||||
}
|
||||
if (settings.isEndGenerate()) {
|
||||
if (settings.isEndGenerate() && gameMode.getEndWorld() != null) {
|
||||
gameModes.put(gameMode.getEndWorld(), gameMode);
|
||||
if (settings.isEndIslands()) {
|
||||
registerToWorldManagementPlugins(gameMode.getEndWorld(), true, true);
|
||||
|
Loading…
Reference in New Issue
Block a user