mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-01 06:46:59 +01:00
Added missing filters to addEntity. Fixes BUKKIT-794
This commit is contained in:
parent
1e06e150b6
commit
8ecdfe9eed
1 changed files with 1 additions and 1 deletions
|
@ -883,7 +883,7 @@ public class World implements IBlockAccess {
|
|||
boolean isAnimal = entity instanceof EntityAnimal || entity instanceof EntityWaterAnimal;
|
||||
boolean isMonster = entity instanceof EntityMonster || entity instanceof EntityGhast || entity instanceof EntitySlime;
|
||||
|
||||
if (spawnReason == SpawnReason.NATURAL || spawnReason == SpawnReason.SPAWNER || spawnReason == SpawnReason.BED || spawnReason == SpawnReason.EGG) {
|
||||
if (spawnReason == SpawnReason.NATURAL || spawnReason == SpawnReason.CHUNK_GEN || spawnReason == SpawnReason.JOCKEY || spawnReason == SpawnReason.SPAWNER || spawnReason == SpawnReason.BED || spawnReason == SpawnReason.EGG) {
|
||||
if (isAnimal && !allowAnimals || isMonster && !allowMonsters) return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue