Fixed per-world spawn limits. I have no idea how we missed this.
This commit is contained in:
parent
73ae279e8d
commit
8f1fc96da0
@ -98,10 +98,13 @@ public final class SpawnerCreature {
|
|||||||
switch (enumcreaturetype) {
|
switch (enumcreaturetype) {
|
||||||
case MONSTER:
|
case MONSTER:
|
||||||
limit = world.getWorld().getMonsterSpawnLimit();
|
limit = world.getWorld().getMonsterSpawnLimit();
|
||||||
|
break;
|
||||||
case CREATURE:
|
case CREATURE:
|
||||||
limit = world.getWorld().getAnimalSpawnLimit();
|
limit = world.getWorld().getAnimalSpawnLimit();
|
||||||
|
break;
|
||||||
case WATER_CREATURE:
|
case WATER_CREATURE:
|
||||||
limit = world.getWorld().getWaterAnimalSpawnLimit();
|
limit = world.getWorld().getWaterAnimalSpawnLimit();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (limit == 0) {
|
if (limit == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user