From 41752f401c3a9b92309ec4beb67284fc0a6e7f4e Mon Sep 17 00:00:00 2001 From: Gunther De Wachter Date: Thu, 17 Mar 2011 18:30:14 +0100 Subject: [PATCH] TNT now gives its entity to the damage handler --- src/main/java/net/minecraft/server/EntityTNTPrimed.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/EntityTNTPrimed.java b/src/main/java/net/minecraft/server/EntityTNTPrimed.java index 4adbd862bd..2d833f731f 100644 --- a/src/main/java/net/minecraft/server/EntityTNTPrimed.java +++ b/src/main/java/net/minecraft/server/EntityTNTPrimed.java @@ -75,7 +75,8 @@ public class EntityTNTPrimed extends Entity { server.getPluginManager().callEvent(event); if (!event.isCancelled()) { - this.world.a((Entity) null, this.locX, this.locY, this.locZ, event.getRadius(), event.getFire()); + // give 'this' instead of (Entity) null so we know what causes the damage + this.world.a(this, this.locX, this.locY, this.locZ, event.getRadius(), event.getFire()); } // CraftBukkit end }