diff options
author | Brokkonaut <hannos17@gmx.de> | 2013-08-19 15:03:58 +0200 |
---|---|---|
committer | Travis Ralston <travpc@gmail.com> | 2013-09-10 20:53:48 -0400 |
commit | 5f43109c0ed77a44bc23613678d1f16ae53feaf6 (patch) | |
tree | f38ffbaceb7e23560283f26dd06af80487c75260 | |
parent | 8ae8957d15668b29a95efdccac60fb989f23461d (diff) | |
download | craftbukkit-5f43109c0ed77a44bc23613678d1f16ae53feaf6.tar craftbukkit-5f43109c0ed77a44bc23613678d1f16ae53feaf6.tar.gz craftbukkit-5f43109c0ed77a44bc23613678d1f16ae53feaf6.tar.lz craftbukkit-5f43109c0ed77a44bc23613678d1f16ae53feaf6.tar.xz craftbukkit-5f43109c0ed77a44bc23613678d1f16ae53feaf6.zip |
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.
-rw-r--r-- | src/main/java/net/minecraft/server/EntityLightning.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |