From 22595ec4c00c6a9b38da599c79721fe249d10b0c Mon Sep 17 00:00:00 2001 From: Bjarne Koll <git@lynxplay.dev> Date: Sat, 15 Jun 2024 18:39:55 +0200 Subject: [PATCH] Revert DamageSource#getCausingEntity to vanilla --- patches/server/Fix-DamageSource-API.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Fix-DamageSource-API.patch b/patches/server/Fix-DamageSource-API.patch index 230b3a1ca1..d7429ac00d 100644 --- a/patches/server/Fix-DamageSource-API.patch +++ b/patches/server/Fix-DamageSource-API.patch @@ -183,7 +183,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 @Override public org.bukkit.entity.Entity getCausingEntity() { - net.minecraft.world.entity.Entity entity = this.getHandle().getCausingDamager(); -+ net.minecraft.world.entity.Entity entity = this.getHandle().getCustomEventDamager(); // Paper ++ net.minecraft.world.entity.Entity entity = this.getHandle().getEntity(); // Paper - fix DamageSource API - revert to vanilla return (entity != null) ? entity.getBukkitEntity() : null; }