mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
#1389: Fix incorrect damager entity for projectile damage events
By: Doc <nachito94@msn.com>
This commit is contained in:
parent
897584d94f
commit
b563a66078
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue