#1389: Fix incorrect damager entity for projectile damage events

By: Doc <nachito94@msn.com>
This commit is contained in:
CraftBukkit/Spigot 2024-04-30 06:28:56 +10:00
parent 897584d94f
commit b563a66078

View file

@ -280,7 +280,7 @@
+ // CraftBukkit start
+ DamageSource damagesource = this.damageSources().playerAttack(this);
+ if (CraftEventFactory.handleNonLivingEntityDamageEvent(this, damagesource, f1, false)) {
+ if (CraftEventFactory.handleNonLivingEntityDamageEvent(entity, damagesource, f1, false)) {
+ return;
+ }
+ // CraftBukkit end