summaryrefslogtreecommitdiffstats
path: root/src/main/java/net
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2012-03-08 18:09:32 -0500
committerEvilSeph <evilseph@gmail.com>2012-03-08 18:09:32 -0500
commit8ecdfe9eed943ced234f98dc2813b11d9099fd4d (patch)
treec7c86a379e43f2b3b4f441fe196a247a00e1bb55 /src/main/java/net
parent1e06e150b6721212cb3facd282f7a4e85f311bdd (diff)
downloadcraftbukkit-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.java2
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;
}