#1389: Fix incorrect damager entity for projectile damage events
By: Doc <nachito94@msn.com>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user