Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 04:20:08 +01:00
21 Zeilen
655 B
Diff
21 Zeilen
655 B
Diff
|
--- 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
|
||
|
}
|
||
|
}
|
||
|
|