From 5f43109c0ed77a44bc23613678d1f16ae53feaf6 Mon Sep 17 00:00:00 2001 From: Brokkonaut Date: Mon, 19 Aug 2013 15:03:58 +0200 Subject: 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. --- src/main/java/net/minecraft/server/EntityLightning.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/net/minecraft/server/EntityLightning.java b/src/main/java/net/minecraft/server/EntityLightning.java index a438d674..6f0dab61 100644 --- a/src/main/java/net/minecraft/server/EntityLightning.java +++ b/src/main/java/net/minecraft/server/EntityLightning.java @@ -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 } -- cgit v1.2.3