geforkt von Mirrors/Paper
Fireballs now give their entity to the damage handler
Dieser Commit ist enthalten in:
Ursprung
d732457354
Commit
b6f87bb23c
@ -154,7 +154,8 @@ public class EntityFireball extends Entity {
|
|||||||
ExplosionPrimedEvent event = new ExplosionPrimedEvent(eventType, CraftEntity.getEntity(server, this), 1.0F, false);
|
ExplosionPrimedEvent event = new ExplosionPrimedEvent(eventType, CraftEntity.getEntity(server, this), 1.0F, false);
|
||||||
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());
|
||||||
this.C();
|
this.C();
|
||||||
}
|
}
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren