13
0
geforkt von Mirrors/Paper

add per world spawn limits

Dieser Commit ist enthalten in:
chase 2020-12-02 22:43:39 -08:00
Ursprung 750a4590ce
Commit 9b7c0ce420

Datei anzeigen

@ -219,6 +219,13 @@ public class CraftWorld extends CraftRegionAccessor implements World {
this.biomeProvider = biomeProvider;
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