3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 04:20:08 +01:00

[Bleeding] Fix stack overflow with Ender Crystals. Fixes BUKKIT-5583

Dieser Commit ist enthalten in:
GJ 2014-05-01 08:47:25 -04:00 committet von Travis Watkins
Ursprung 2bf22a9c49
Commit 33e472229e

Datei anzeigen

@ -67,18 +67,18 @@ public class EntityEnderCrystal extends Entity {
this.b = 0;
if (this.b <= 0) {
// this.die(); // CraftBukkit - moved down
this.die();
if (!this.world.isStatic) {
// CraftBukkit start
ExplosionPrimeEvent event = new ExplosionPrimeEvent(this.getBukkitEntity(), 6.0F, false);
this.world.getServer().getPluginManager().callEvent(event);
if (event.isCancelled()) {
this.dead = false;
return false;
}
this.world.createExplosion(this, this.locX, this.locY, this.locZ, event.getRadius(), event.getFire(), true);
// CraftBukkit end
}
this.die();
// CraftBukkit end
}
}