From 079901346673010c8eafe4b1e651b0c05d2e2f41 Mon Sep 17 00:00:00 2001 From: Doc Date: Tue, 30 Apr 2024 06:28:56 +1000 Subject: [PATCH] #1389: Fix incorrect damager entity for projectile damage events --- nms-patches/net/minecraft/world/entity/player/EntityHuman.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nms-patches/net/minecraft/world/entity/player/EntityHuman.patch b/nms-patches/net/minecraft/world/entity/player/EntityHuman.patch index 50b7e30ae..e0e27cae6 100644 --- a/nms-patches/net/minecraft/world/entity/player/EntityHuman.patch +++ b/nms-patches/net/minecraft/world/entity/player/EntityHuman.patch @@ -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