mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-03 13:36:44 +01:00
TNT now gives its entity to the damage handler
This commit is contained in:
parent
b6f87bb23c
commit
41752f401c
1 changed files with 2 additions and 1 deletions
|
@ -75,7 +75,8 @@ public class EntityTNTPrimed extends Entity {
|
||||||
server.getPluginManager().callEvent(event);
|
server.getPluginManager().callEvent(event);
|
||||||
|
|
||||||
if (!event.isCancelled()) {
|
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
|
// CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue