TNT now gives its entity to the damage handler

This commit is contained in:
Gunther De Wachter authored and Erik Broes committed 2011-03-17 20:01:42 +01:00
1 parent b6f87bb23c
commit 41752f401c
1 file changed
+2 -1
@@ -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
}