diff options
author | feildmaster <admin@feildmaster.com> | 2012-04-03 18:00:07 -0500 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2012-04-03 18:07:46 -0500 |
commit | 20dea920c225d6955867136ce1222a5ca0f91ce4 (patch) | |
tree | 499644404dc9f42d69ef5b364e4be8ba481a941f | |
parent | af0018a962b1e7aa48c86ed4d7bb4599a3983a98 (diff) | |
download | craftbukkit-20dea920c225d6955867136ce1222a5ca0f91ce4.tar craftbukkit-20dea920c225d6955867136ce1222a5ca0f91ce4.tar.gz craftbukkit-20dea920c225d6955867136ce1222a5ca0f91ce4.tar.lz craftbukkit-20dea920c225d6955867136ce1222a5ca0f91ce4.tar.xz craftbukkit-20dea920c225d6955867136ce1222a5ca0f91ce4.zip |
Don't spawn conditional mobs if original entity is dead. Fixes BUKKIT-1444
-rw-r--r-- | src/main/java/net/minecraft/server/SpawnerCreature.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/SpawnerCreature.java b/src/main/java/net/minecraft/server/SpawnerCreature.java index 071fde9f..1090c0da 100644 --- a/src/main/java/net/minecraft/server/SpawnerCreature.java +++ b/src/main/java/net/minecraft/server/SpawnerCreature.java @@ -201,6 +201,7 @@ public final class SpawnerCreature { } private static void a(EntityLiving entityliving, World world, float f, float f1, float f2) { + if (entityliving.dead) return; // CraftBukkit if (entityliving instanceof EntitySpider && world.random.nextInt(100) == 0) { EntitySkeleton entityskeleton = new EntitySkeleton(world); |