13
0
geforkt von Mirrors/Paper

Correct location of fire from lightning strikes. Fixes BUKKIT-4707

Previously fires spawned by lightning strikes were in the wrong locations.
This introduced the possibility of having blocks replaced when they should
not be.

EntityLightning now uses the correct locations as defined to spawn the
fires when needed.
Dieser Commit ist enthalten in:
Brokkonaut 2013-08-19 15:03:58 +02:00 committet von Travis Ralston
Ursprung 8ae8957d15
Commit 5f43109c0e

Datei anzeigen

@ -53,7 +53,7 @@ public class EntityLightning extends EntityWeather {
if (world.getTypeId(j, k, l) == 0 && Block.FIRE.canPlace(world, j, k, l)) {
// CraftBukkit start
if (!CraftEventFactory.callBlockIgniteEvent(world, j, k, l, this).isCancelled()) {
world.setTypeIdUpdate(i, j, k, Block.FIRE.id);
world.setTypeIdUpdate(j, k, l, Block.FIRE.id);
}
// CraftBukkit end
}