mirror of
https://github.com/BentoBoxWorld/AcidIsland.git
synced 2024-11-29 22:24:02 +01:00
Merge branch 'develop'
This commit is contained in:
commit
0fa81685c6
2
pom.xml
2
pom.xml
@ -65,7 +65,7 @@
|
|||||||
<!-- Do not change unless you want different name for local builds. -->
|
<!-- Do not change unless you want different name for local builds. -->
|
||||||
<build.number>-LOCAL</build.number>
|
<build.number>-LOCAL</build.number>
|
||||||
<!-- This allows to change between versions. -->
|
<!-- This allows to change between versions. -->
|
||||||
<build.version>1.14.4</build.version>
|
<build.version>1.14.5</build.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<!-- Profiles will allow to automatically change build version. -->
|
<!-- Profiles will allow to automatically change build version. -->
|
||||||
|
@ -144,13 +144,25 @@ public class AcidIsland extends GameModeAddon {
|
|||||||
World w = settings.isUseOwnGenerator() ? wc.createWorld() : wc.generator(chunkGenerator2).createWorld();
|
World w = settings.isUseOwnGenerator() ? wc.createWorld() : wc.generator(chunkGenerator2).createWorld();
|
||||||
// Set spawn rates
|
// Set spawn rates
|
||||||
if (w != null) {
|
if (w != null) {
|
||||||
|
if (getSettings().getSpawnLimitMonsters() > 0) {
|
||||||
w.setMonsterSpawnLimit(getSettings().getSpawnLimitMonsters());
|
w.setMonsterSpawnLimit(getSettings().getSpawnLimitMonsters());
|
||||||
|
}
|
||||||
|
if (getSettings().getSpawnLimitAmbient() > 0) {
|
||||||
w.setAmbientSpawnLimit(getSettings().getSpawnLimitAmbient());
|
w.setAmbientSpawnLimit(getSettings().getSpawnLimitAmbient());
|
||||||
|
}
|
||||||
|
if (getSettings().getSpawnLimitAnimals() > 0) {
|
||||||
w.setAnimalSpawnLimit(getSettings().getSpawnLimitAnimals());
|
w.setAnimalSpawnLimit(getSettings().getSpawnLimitAnimals());
|
||||||
|
}
|
||||||
|
if (getSettings().getSpawnLimitWaterAnimals() > 0) {
|
||||||
w.setWaterAnimalSpawnLimit(getSettings().getSpawnLimitWaterAnimals());
|
w.setWaterAnimalSpawnLimit(getSettings().getSpawnLimitWaterAnimals());
|
||||||
|
}
|
||||||
|
if (getSettings().getTicksPerAnimalSpawns() > 0) {
|
||||||
w.setTicksPerAnimalSpawns(getSettings().getTicksPerAnimalSpawns());
|
w.setTicksPerAnimalSpawns(getSettings().getTicksPerAnimalSpawns());
|
||||||
|
}
|
||||||
|
if (getSettings().getTicksPerMonsterSpawns() > 0) {
|
||||||
w.setTicksPerMonsterSpawns(getSettings().getTicksPerMonsterSpawns());
|
w.setTicksPerMonsterSpawns(getSettings().getTicksPerMonsterSpawns());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return w;
|
return w;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user