mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 18:50:51 +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
|
+ // CraftBukkit start
|
||||||
+ DamageSource damagesource = this.damageSources().playerAttack(this);
|
+ DamageSource damagesource = this.damageSources().playerAttack(this);
|
||||||
+ if (CraftEventFactory.handleNonLivingEntityDamageEvent(this, damagesource, f1, false)) {
|
+ if (CraftEventFactory.handleNonLivingEntityDamageEvent(entity, damagesource, f1, false)) {
|
||||||
+ return;
|
+ return;
|
||||||
+ }
|
+ }
|
||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
|
|
Loading…
Reference in a new issue