Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 21:10:17 +01:00
Fixed fireball explosions not producing fire.
Dieser Commit ist enthalten in:
Ursprung
a9e7b56ef2
Commit
80770314d8
@ -151,7 +151,7 @@ public class EntityFireball extends Entity {
|
|||||||
|
|
||||||
CraftServer server = ((WorldServer) this.world).getServer();
|
CraftServer server = ((WorldServer) this.world).getServer();
|
||||||
|
|
||||||
ExplosionPrimeEvent event = new ExplosionPrimeEvent(CraftEntity.getEntity(server, this), 1.0F, false);
|
ExplosionPrimeEvent event = new ExplosionPrimeEvent(CraftEntity.getEntity(server, this), 1.0F, true);
|
||||||
server.getPluginManager().callEvent(event);
|
server.getPluginManager().callEvent(event);
|
||||||
if (!event.isCancelled()) {
|
if (!event.isCancelled()) {
|
||||||
// give 'this' instead of (Entity) null so we know what causes the damage
|
// give 'this' instead of (Entity) null so we know what causes the damage
|
||||||
|
@ -239,7 +239,8 @@ public class Explosion {
|
|||||||
this.world.a("smoke", d0, d1, d2, d3, d4, d5);
|
this.world.a("smoke", d0, d1, d2, d3, d4, d5);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i1 > 0) {
|
// CraftBukkit - stop explosions from putting out fire
|
||||||
|
if (i1 > 0 && i1 != Block.FIRE.id) {
|
||||||
// CraftBukkit
|
// CraftBukkit
|
||||||
Block.byId[i1].dropNaturally(this.world, j, k, l, this.world.getData(j, k, l), event.getYield());
|
Block.byId[i1].dropNaturally(this.world, j, k, l, this.world.getData(j, k, l), event.getYield());
|
||||||
this.world.setTypeId(j, k, l, 0);
|
this.world.setTypeId(j, k, l, 0);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren