summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityZombie.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntityZombie.patch')
-rw-r--r--nms-patches/EntityZombie.patch11
1 files changed, 3 insertions, 8 deletions
diff --git a/nms-patches/EntityZombie.patch b/nms-patches/EntityZombie.patch
index d672aaca..c6995929 100644
--- a/nms-patches/EntityZombie.patch
+++ b/nms-patches/EntityZombie.patch
@@ -104,7 +104,7 @@
entityvillager.addEffect(new MobEffect(MobEffects.CONFUSION, 200, 0));
this.world.a((EntityHuman) null, 1027, new BlockPosition((int) this.locX, (int) this.locY, (int) this.locZ), 0);
}
-@@ -514,12 +541,16 @@
+@@ -514,11 +541,12 @@
}
public void die(DamageSource damagesource) {
@@ -112,14 +112,9 @@
+ // super.die(damagesource); // CraftBukkit
if (damagesource.getEntity() instanceof EntityCreeper && !(this instanceof EntityPigZombie) && ((EntityCreeper) damagesource.getEntity()).isPowered() && ((EntityCreeper) damagesource.getEntity()).canCauseHeadDrop()) {
((EntityCreeper) damagesource.getEntity()).setCausedHeadDrop();
-- this.a(new ItemStack(Items.SKULL, 1, 2), 0.0F);
-+ // CraftBukkit start
-+ // this.a(new ItemStack(Items.SKULL, 1, 2), 0.0F);
-+ headDrop = new ItemStack(Items.SKULL, 1, 2);
-+ // CraftBukkit end
+ this.a(new ItemStack(Items.SKULL, 1, 2), 0.0F);
}
-
+ super.die(damagesource); // CraftBukkit - moved from above
+
}
- static class SyntheticClass_1 { }