From 2a51a729646cd62e12087dfd79c786fcc18297bf Mon Sep 17 00:00:00 2001 From: tastybento Date: Fri, 27 Nov 2020 07:49:58 -0800 Subject: [PATCH 1/2] Version 1.14.5 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index f63a02e..ea6d69b 100644 --- a/pom.xml +++ b/pom.xml @@ -65,7 +65,7 @@ -LOCAL - 1.14.4 + 1.14.5 From 6907edd407340746957dd250f07e35da8b525fdb Mon Sep 17 00:00:00 2001 From: tastybento Date: Fri, 27 Nov 2020 07:50:25 -0800 Subject: [PATCH 2/2] Do not set world mob spawn settings unless > 0 --- .../world/bentobox/acidisland/AcidIsland.java | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/src/main/java/world/bentobox/acidisland/AcidIsland.java b/src/main/java/world/bentobox/acidisland/AcidIsland.java index ccedb2c..a9d111d 100644 --- a/src/main/java/world/bentobox/acidisland/AcidIsland.java +++ b/src/main/java/world/bentobox/acidisland/AcidIsland.java @@ -144,12 +144,24 @@ public class AcidIsland extends GameModeAddon { World w = settings.isUseOwnGenerator() ? wc.createWorld() : wc.generator(chunkGenerator2).createWorld(); // Set spawn rates if (w != null) { - w.setMonsterSpawnLimit(getSettings().getSpawnLimitMonsters()); - w.setAmbientSpawnLimit(getSettings().getSpawnLimitAmbient()); - w.setAnimalSpawnLimit(getSettings().getSpawnLimitAnimals()); - w.setWaterAnimalSpawnLimit(getSettings().getSpawnLimitWaterAnimals()); - w.setTicksPerAnimalSpawns(getSettings().getTicksPerAnimalSpawns()); - w.setTicksPerMonsterSpawns(getSettings().getTicksPerMonsterSpawns()); + if (getSettings().getSpawnLimitMonsters() > 0) { + w.setMonsterSpawnLimit(getSettings().getSpawnLimitMonsters()); + } + if (getSettings().getSpawnLimitAmbient() > 0) { + w.setAmbientSpawnLimit(getSettings().getSpawnLimitAmbient()); + } + if (getSettings().getSpawnLimitAnimals() > 0) { + w.setAnimalSpawnLimit(getSettings().getSpawnLimitAnimals()); + } + if (getSettings().getSpawnLimitWaterAnimals() > 0) { + w.setWaterAnimalSpawnLimit(getSettings().getSpawnLimitWaterAnimals()); + } + if (getSettings().getTicksPerAnimalSpawns() > 0) { + w.setTicksPerAnimalSpawns(getSettings().getTicksPerAnimalSpawns()); + } + if (getSettings().getTicksPerMonsterSpawns() > 0) { + w.setTicksPerMonsterSpawns(getSettings().getTicksPerMonsterSpawns()); + } } return w;