mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-02 06:57:30 +01:00
Don't spawn conditional mobs if original entity is dead. Fixes BUKKIT-1444
This commit is contained in:
parent
af0018a962
commit
20dea920c2
1 changed files with 1 additions and 0 deletions
|
@ -201,6 +201,7 @@ public final class SpawnerCreature {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void a(EntityLiving entityliving, World world, float f, float f1, float f2) {
|
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) {
|
if (entityliving instanceof EntitySpider && world.random.nextInt(100) == 0) {
|
||||||
EntitySkeleton entityskeleton = new EntitySkeleton(world);
|
EntitySkeleton entityskeleton = new EntitySkeleton(world);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue