summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nms-patches/EntityPigZombie.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/nms-patches/EntityPigZombie.patch b/nms-patches/EntityPigZombie.patch
new file mode 100644
index 00000000..96303f5c
--- /dev/null
+++ b/nms-patches/EntityPigZombie.patch
@@ -0,0 +1,20 @@
+--- a/net/minecraft/server/EntityPigZombie.java
++++ b/net/minecraft/server/EntityPigZombie.java
+@@ -113,11 +113,15 @@
+ } else {
+ Entity entity = damagesource.getEntity();
+
+- if (entity instanceof EntityHuman && !((EntityHuman) entity).u()) {
++ // CraftBukkit start
++ boolean result = super.damageEntity(damagesource, f);
++
++ if (result && entity instanceof EntityHuman && !((EntityHuman) entity).u()) {
+ this.a(entity);
+ }
+
+- return super.damageEntity(damagesource, f);
++ return result;
++ // CraftBukkit end
+ }
+ }
+