#1420: Fix DirectEntity and CausingEntity Damager for Creepers ignited by Player

By: Doc <nachito94@msn.com>
This commit is contained in:
CraftBukkit/Spigot
2024-06-15 06:47:48 +10:00
parent 17fc7c0926
commit c985be99a6
3 changed files with 20 additions and 4 deletions

View File

@@ -41,7 +41,7 @@ public class CraftDamageSource implements DamageSource {
@Override
public org.bukkit.entity.Entity getCausingEntity() {
net.minecraft.world.entity.Entity entity = this.getHandle().getEntity();
net.minecraft.world.entity.Entity entity = this.getHandle().getCausingDamager();
return (entity != null) ? entity.getBukkitEntity() : null;
}