geforkt von Mirrors/Paper
Fixed per-world spawn limits. I have no idea how we missed this.
Dieser Commit ist enthalten in:
Ursprung
73ae279e8d
Commit
8f1fc96da0
@ -95,13 +95,16 @@ public final class SpawnerCreature {
|
|||||||
|
|
||||||
// CraftBukkit start - use per-world spawn limits
|
// CraftBukkit start - use per-world spawn limits
|
||||||
int limit = 0;
|
int limit = 0;
|
||||||
switch(enumcreaturetype) {
|
switch (enumcreaturetype) {
|
||||||
case MONSTER:
|
case MONSTER:
|
||||||
limit = world.getWorld().getMonsterSpawnLimit();
|
limit = world.getWorld().getMonsterSpawnLimit();
|
||||||
case CREATURE:
|
break;
|
||||||
limit = world.getWorld().getAnimalSpawnLimit();
|
case CREATURE:
|
||||||
case WATER_CREATURE:
|
limit = world.getWorld().getAnimalSpawnLimit();
|
||||||
limit = world.getWorld().getWaterAnimalSpawnLimit();
|
break;
|
||||||
|
case WATER_CREATURE:
|
||||||
|
limit = world.getWorld().getWaterAnimalSpawnLimit();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (limit == 0) {
|
if (limit == 0) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren