diff options
author | nathat890 <nathat890@outlook.com> | 2018-12-05 09:51:20 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-12-05 09:51:45 +1100 |
commit | 20fc5bea2c51de8d5239b68d83e878896b8ff505 (patch) | |
tree | cd93f48fe1c8d6a33fb2d14f54b328c7611505f9 /nms-patches/EntityMushroomCow.patch | |
parent | 38e4c013b66d2a870e83fe61b2da6bad608c69af (diff) | |
download | craftbukkit-20fc5bea2c51de8d5239b68d83e878896b8ff505.tar craftbukkit-20fc5bea2c51de8d5239b68d83e878896b8ff505.tar.gz craftbukkit-20fc5bea2c51de8d5239b68d83e878896b8ff505.tar.lz craftbukkit-20fc5bea2c51de8d5239b68d83e878896b8ff505.tar.xz craftbukkit-20fc5bea2c51de8d5239b68d83e878896b8ff505.zip |
Add list of entities to EntityTransformEvent & move die calls
Diffstat (limited to 'nms-patches/EntityMushroomCow.patch')
-rw-r--r-- | nms-patches/EntityMushroomCow.patch | 12 |
1 files changed, 9 insertions, 3 deletions
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) { |