From d39c363e5cc95af3da86586ede877e19a45084eb Mon Sep 17 00:00:00 2001 From: Tahg Date: Thu, 6 Oct 2011 11:02:39 -0400 Subject: [PATCH] another attempt at mob spawners - 3rd time's the charm? --- src/main/java/net/minecraft/server/TileEntityMobSpawner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/TileEntityMobSpawner.java b/src/main/java/net/minecraft/server/TileEntityMobSpawner.java index 9f5a02303f..b98f60bc38 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);