Fire EntityDamageByEntityEvent for unowned wither skulls
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
public class WitherSkull extends AbstractHurtingProjectile {
|
||||
|
||||
@@ -69,7 +73,7 @@
|
||||
@@ -69,11 +73,11 @@
|
||||
if (entity.isAlive()) {
|
||||
EnchantmentHelper.doPostAttackEffects(worldserver, entity, damagesource);
|
||||
} else {
|
||||
@@ -20,6 +20,11 @@
|
||||
}
|
||||
}
|
||||
} else {
|
||||
- flag = entity.hurtServer(worldserver, this.damageSources().magic(), 5.0F);
|
||||
+ flag = entity.hurtServer(worldserver, this.damageSources().magic().customCausingEntity(this), 5.0F); // Paper - Fire EntityDamageByEntityEvent for unowned wither skulls
|
||||
}
|
||||
|
||||
if (flag && entity instanceof LivingEntity entityliving) {
|
||||
@@ -86,7 +90,7 @@
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user