From 20fc5bea2c51de8d5239b68d83e878896b8ff505 Mon Sep 17 00:00:00 2001 From: nathat890 Date: Wed, 5 Dec 2018 09:51:20 +1100 Subject: Add list of entities to EntityTransformEvent & move die calls --- nms-patches/EntityMushroomCow.patch | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'nms-patches/EntityMushroomCow.patch') diff --git a/nms-patches/EntityMushroomCow.patch b/nms-patches/EntityMushroomCow.patch index 3c07a016..9997688a 100644 --- a/nms-patches/EntityMushroomCow.patch +++ b/nms-patches/EntityMushroomCow.patch @@ -13,7 +13,7 @@ public class EntityMushroomCow extends EntityCow { public EntityMushroomCow(World world) { -@@ -23,6 +29,14 @@ +@@ -23,9 +29,17 @@ return true; } else if (itemstack.getItem() == Items.SHEARS && this.getAge() >= 0) { @@ -27,8 +27,12 @@ + // CraftBukkit end this.world.addParticle(Particles.u, this.locX, this.locY + (double) (this.length / 2.0F), this.locZ, 0.0D, 0.0D, 0.0D); if (!this.world.isClientSide) { - this.die(); -@@ -35,7 +49,12 @@ +- this.die(); ++ // this.die(); // CraftBukkit - moved down + EntityCow entitycow = new EntityCow(this.world); + + entitycow.setPositionRotation(this.locX, this.locY, this.locZ, this.yaw, this.pitch); +@@ -35,7 +49,14 @@ entitycow.setCustomName(this.getCustomName()); } @@ -38,6 +42,8 @@ + return false; + } + this.world.addEntity(entitycow, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SHEARED); ++ ++ this.die(); // CraftBukkit - from above + // CraftBukkit end for (int i = 0; i < 5; ++i) { -- cgit v1.2.3