mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 23:57:43 +01:00
Fix ExplosionPrimeEvent#setFire not working with EnderCrystals
This commit is contained in:
parent
39a287b7da
commit
8b1588e2f1
1 changed files with 2 additions and 2 deletions
|
@ -39,13 +39,13 @@
|
||||||
if (!damagesource.isExplosion()) {
|
if (!damagesource.isExplosion()) {
|
||||||
- this.world.explode((Entity) null, this.locX, this.locY, this.locZ, 6.0F, true);
|
- this.world.explode((Entity) null, this.locX, this.locY, this.locZ, 6.0F, true);
|
||||||
+ // CraftBukkit start
|
+ // CraftBukkit start
|
||||||
+ ExplosionPrimeEvent event = new ExplosionPrimeEvent(this.getBukkitEntity(), 6.0F, true);
|
+ ExplosionPrimeEvent event = new ExplosionPrimeEvent(this.getBukkitEntity(), 6.0F, false);
|
||||||
+ this.world.getServer().getPluginManager().callEvent(event);
|
+ this.world.getServer().getPluginManager().callEvent(event);
|
||||||
+ if (event.isCancelled()) {
|
+ if (event.isCancelled()) {
|
||||||
+ this.dead = false;
|
+ this.dead = false;
|
||||||
+ return false;
|
+ return false;
|
||||||
+ }
|
+ }
|
||||||
+ this.world.explode(this, this.locX, this.locY, this.locZ, event.getRadius(), event.getFire());
|
+ this.world.createExplosion(this, this.locX, this.locY, this.locZ, event.getRadius(), event.getFire(), true);
|
||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue