diff options
author | EvilSeph <evilseph@gmail.com> | 2012-03-08 18:09:32 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-03-08 18:09:32 -0500 |
commit | 8ecdfe9eed943ced234f98dc2813b11d9099fd4d (patch) | |
tree | c7c86a379e43f2b3b4f441fe196a247a00e1bb55 /src/main/java/net | |
parent | 1e06e150b6721212cb3facd282f7a4e85f311bdd (diff) | |
download | craftbukkit-8ecdfe9eed943ced234f98dc2813b11d9099fd4d.tar craftbukkit-8ecdfe9eed943ced234f98dc2813b11d9099fd4d.tar.gz craftbukkit-8ecdfe9eed943ced234f98dc2813b11d9099fd4d.tar.lz craftbukkit-8ecdfe9eed943ced234f98dc2813b11d9099fd4d.tar.xz craftbukkit-8ecdfe9eed943ced234f98dc2813b11d9099fd4d.zip |
Added missing filters to addEntity. Fixes BUKKIT-794
Diffstat (limited to 'src/main/java/net')
-rw-r--r-- | src/main/java/net/minecraft/server/World.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java index 6d3b82bf..75baeacd 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -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; } |