diff options
author | Gunther De Wachter <GuntherDW@gmail.com> | 2011-03-17 18:30:14 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-03-17 20:01:42 +0100 |
commit | 41752f401c3a9b92309ec4beb67284fc0a6e7f4e (patch) | |
tree | c43219cf27ab9d9d893446f47f8094762c016d95 /src/main/java/net/minecraft | |
parent | b6f87bb23c7e5d980f7a4765616695a2348239b1 (diff) | |
download | craftbukkit-41752f401c3a9b92309ec4beb67284fc0a6e7f4e.tar craftbukkit-41752f401c3a9b92309ec4beb67284fc0a6e7f4e.tar.gz craftbukkit-41752f401c3a9b92309ec4beb67284fc0a6e7f4e.tar.lz craftbukkit-41752f401c3a9b92309ec4beb67284fc0a6e7f4e.tar.xz craftbukkit-41752f401c3a9b92309ec4beb67284fc0a6e7f4e.zip |
TNT now gives its entity to the damage handler
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityTNTPrimed.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityTNTPrimed.java b/src/main/java/net/minecraft/server/EntityTNTPrimed.java index 4adbd862..2d833f73 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 } |