summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTahg <tahgtahv@gmail.com>2011-10-06 11:02:39 -0400
committerTahg <tahgtahv@gmail.com>2011-10-06 11:02:39 -0400
commitd39c363e5cc95af3da86586ede877e19a45084eb (patch)
tree58c85d6bfc93d460adf15031c59867b0d039c125 /src
parent696349884b8f09430eba0c4a9847805e3e6c002c (diff)
downloadcraftbukkit-d39c363e5cc95af3da86586ede877e19a45084eb.tar
craftbukkit-d39c363e5cc95af3da86586ede877e19a45084eb.tar.gz
craftbukkit-d39c363e5cc95af3da86586ede877e19a45084eb.tar.lz
craftbukkit-d39c363e5cc95af3da86586ede877e19a45084eb.tar.xz
craftbukkit-d39c363e5cc95af3da86586ede877e19a45084eb.zip
another attempt at mob spawners - 3rd time's the charm?
Diffstat (limited to 'src')
-rw-r--r--src/main/java/net/minecraft/server/TileEntityMobSpawner.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/TileEntityMobSpawner.java b/src/main/java/net/minecraft/server/TileEntityMobSpawner.java
index 9f5a0230..b98f60bc 100644
--- a/src/main/java/net/minecraft/server/TileEntityMobSpawner.java
+++ b/src/main/java/net/minecraft/server/TileEntityMobSpawner.java
@@ -85,7 +85,7 @@ public class TileEntityMobSpawner extends TileEntity {
entityliving.setPositionRotation(d3, d4, d5, this.world.random.nextFloat() * 360.0F, 0.0F);
if ((entityliving instanceof EntityLiving && ((EntityLiving)entityliving).d()) ||
- (entityliving.world.containsEntity(entityliving.boundingBox) && entityliving.world.getEntities(entityliving, entityliving.boundingBox).size() == 0 && !entityliving.world.c(entityliving.boundingBox))) {
+ (!(entityliving instanceof EntityLiving) && entityliving.world.containsEntity(entityliving.boundingBox) && entityliving.world.getEntities(entityliving, entityliving.boundingBox).size() == 0 && !entityliving.world.c(entityliving.boundingBox))) {
// CraftBukkit end
// CraftBukkit - added a reason for spawning this creature
this.world.addEntity(entityliving, SpawnReason.SPAWNER);