mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-01 06:46:59 +01:00
Fixed per-world spawn limits. I have no idea how we missed this.
This commit is contained in:
parent
73ae279e8d
commit
8f1fc96da0
1 changed files with 10 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue