3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00

Fixed per-world spawn limits. I have no idea how we missed this.

Dieser Commit ist enthalten in:
Travis Watkins 2012-04-24 18:59:55 -05:00 committet von EvilSeph
Ursprung 73ae279e8d
Commit 8f1fc96da0

Datei anzeigen

@ -95,13 +95,16 @@ public final class SpawnerCreature {
// CraftBukkit start - use per-world spawn limits
int limit = 0;
switch(enumcreaturetype) {
case MONSTER:
limit = world.getWorld().getMonsterSpawnLimit();
case CREATURE:
limit = world.getWorld().getAnimalSpawnLimit();
case WATER_CREATURE:
limit = world.getWorld().getWaterAnimalSpawnLimit();
switch (enumcreaturetype) {
case MONSTER:
limit = world.getWorld().getMonsterSpawnLimit();
break;
case CREATURE:
limit = world.getWorld().getAnimalSpawnLimit();
break;
case WATER_CREATURE:
limit = world.getWorld().getWaterAnimalSpawnLimit();
break;
}
if (limit == 0) {