add per world spawn limits
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user