mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
fix per-player-mob-spawns cause total limit cap by Bukkit's spawn limit (#6574)
This commit is contained in:
parent
667baeed68
commit
49fabba8b5
@ -697,7 +697,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ // Paper end
|
+ // Paper end
|
||||||
+
|
+
|
||||||
+ // Paper start - per player mob spawning
|
+ // Paper start - per player mob spawning
|
||||||
+ if ((spawnAnimals || !enumcreaturetype.isFriendly()) && (spawnMonsters || enumcreaturetype.isFriendly()) && (rareSpawn || !enumcreaturetype.isPersistent()) && info.canSpawnForCategory(enumcreaturetype, limit) && difference > 0) {
|
+ if ((spawnAnimals || !enumcreaturetype.isFriendly()) && (spawnMonsters || enumcreaturetype.isFriendly()) && (rareSpawn || !enumcreaturetype.isPersistent()) && difference > 0) {
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
Objects.requireNonNull(info);
|
Objects.requireNonNull(info);
|
||||||
NaturalSpawner.SpawnPredicate spawnercreature_c = info::canSpawn;
|
NaturalSpawner.SpawnPredicate spawnercreature_c = info::canSpawn;
|
||||||
|
Loading…
Reference in New Issue
Block a user