@@ -1,14 +1,14 @@
|
||||
--- a/net/minecraft/server/EntityPigZombie.java
|
||||
+++ b/net/minecraft/server/EntityPigZombie.java
|
||||
@@ -113,16 +113,27 @@
|
||||
@@ -123,16 +123,27 @@
|
||||
} else {
|
||||
Entity entity = damagesource.getEntity();
|
||||
|
||||
- if (entity instanceof EntityHuman && !((EntityHuman) entity).u()) {
|
||||
- if (entity instanceof EntityHuman && !((EntityHuman) entity).isCreative()) {
|
||||
+ // CraftBukkit start
|
||||
+ boolean result = super.damageEntity(damagesource, f);
|
||||
+
|
||||
+ if (result && entity instanceof EntityHuman && !((EntityHuman) entity).u()) {
|
||||
+ if (result && entity instanceof EntityHuman && !((EntityHuman) entity).isCreative()) {
|
||||
this.a(entity);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user