#1389: Fix incorrect damager entity for projectile damage events

This commit is contained in:
Doc 2024-04-30 06:28:56 +10:00 committed by md_5
parent df83bfa1ee
commit 0799013466
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -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