File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
src/main/java/world/bentobox/stranger Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -226,24 +226,12 @@ private World getWorld(String worldName2, Environment env) {
226226 }
227227
228228 private void setSpawnRates (World w ) {
229- if (getSettings ().getSpawnLimitMonsters () > 0 ) {
230229 w .setSpawnLimit (SpawnCategory .MONSTER , getSettings ().getSpawnLimitMonsters ());
231- }
232- if (getSettings ().getSpawnLimitAmbient () > 0 ) {
233230 w .setSpawnLimit (SpawnCategory .AMBIENT , getSettings ().getSpawnLimitAmbient ());
234- }
235- if (getSettings ().getSpawnLimitAnimals () > 0 ) {
236- w .setSpawnLimit (SpawnCategory .ANIMAL , getSettings ().getSpawnLimitAnimals ());
237- }
238- if (getSettings ().getSpawnLimitWaterAnimals () > 0 ) {
239- w .setSpawnLimit (SpawnCategory .WATER_ANIMAL , getSettings ().getSpawnLimitWaterAnimals ());
240- }
241- if (getSettings ().getTicksPerAnimalSpawns () > 0 ) {
231+ w .setSpawnLimit (SpawnCategory .ANIMAL , getSettings ().getSpawnLimitAnimals ());
232+ w .setSpawnLimit (SpawnCategory .WATER_ANIMAL , getSettings ().getSpawnLimitWaterAnimals ());
242233 w .setTicksPerSpawns (SpawnCategory .ANIMAL , getSettings ().getTicksPerAnimalSpawns ());
243- }
244- if (getSettings ().getTicksPerMonsterSpawns () > 0 ) {
245234 w .setTicksPerSpawns (SpawnCategory .MONSTER , getSettings ().getTicksPerMonsterSpawns ());
246- }
247235 }
248236
249237 @ Override
You can’t perform that action at this time.
0 commit comments