summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityPigZombie.patch
blob: 96303f5cde58646c3e0e05b94126057d12a350ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
         }
     }