geforkt von Mirrors/Paper
add per world spawn limits
Dieser Commit ist enthalten in:
Ursprung
750a4590ce
Commit
9b7c0ce420
@ -219,6 +219,13 @@ public class CraftWorld extends CraftRegionAccessor implements World {
|
|||||||
this.biomeProvider = biomeProvider;
|
this.biomeProvider = biomeProvider;
|
||||||
|
|
||||||
this.environment = env;
|
this.environment = env;
|
||||||
|
// Paper start - per world spawn limits
|
||||||
|
for (SpawnCategory spawnCategory : SpawnCategory.values()) {
|
||||||
|
if (CraftSpawnCategory.isValidForLimits(spawnCategory)) {
|
||||||
|
setSpawnLimit(spawnCategory, this.world.paperConfig().entities.spawning.spawnLimits.getInt(CraftSpawnCategory.toNMS(spawnCategory)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Paper end - per world spawn limits
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren