Additional null check.

This commit is contained in:
tastybento 2021-05-03 16:34:10 -07:00
parent 8e107fc0a9
commit 00b0bda860

View File

@ -143,7 +143,7 @@ public class AcidIsland extends GameModeAddon {
WorldCreator wc = WorldCreator.name(worldName2).type(WorldType.FLAT).environment(env);
World w = settings.isUseOwnGenerator() ? wc.createWorld() : wc.generator(chunkGenerator2).createWorld();
// Set spawn rates
if (w != null) {
if (w != null && getSettings() != null) {
if (getSettings().getSpawnLimitMonsters() > 0) {
w.setMonsterSpawnLimit(getSettings().getSpawnLimitMonsters());
}