Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 04:50:05 +01:00
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:
Ursprung
8ae8957d15
Commit
5f43109c0e
@ -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
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren