From abc4b35bcd68af4fd1fb4c593f4e6f86a0fa4fe3 Mon Sep 17 00:00:00 2001 From: speakeasy Date: Wed, 19 Jan 2011 05:00:49 +0800 Subject: [PATCH] Fix BlockIgniteEvent after someone updated it and missed some stuff. --- src/main/java/net/minecraft/server/BlockFire.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/net/minecraft/server/BlockFire.java b/src/main/java/net/minecraft/server/BlockFire.java index 3a69cef3a0..1af4437e3f 100644 --- a/src/main/java/net/minecraft/server/BlockFire.java +++ b/src/main/java/net/minecraft/server/BlockFire.java @@ -90,12 +90,10 @@ public class BlockFire extends Block { Server server = ((WorldServer)world).getServer(); CraftWorld cworld = ((WorldServer)world).getWorld(); - org.bukkit.block.Block theBlock = (cworld.getBlockAt(i, j, k)); - IgniteCause igniteCause = BlockIgniteEvent.IgniteCause.SPREAD; - Player thePlayer = null; + org.bukkit.block.Block theBlock = (cworld.getBlockAt(i1, j1, k1)); if (theBlock.getTypeId() != Block.ar.bi){ - BlockIgniteEvent event = new BlockIgniteEvent(theBlock, igniteCause, thePlayer); + BlockIgniteEvent event = new BlockIgniteEvent(theBlock, BlockIgniteEvent.IgniteCause.SPREAD, null); server.getPluginManager().callEvent(event); if (event.isCancelled()) { return; @@ -123,11 +121,9 @@ public class BlockFire extends Block { CraftWorld cworld = ((WorldServer)world).getWorld(); org.bukkit.block.Block theBlock = (cworld.getBlockAt(i, j, k)); - IgniteCause igniteCause = BlockIgniteEvent.IgniteCause.SLOW_SPREAD; - Player thePlayer = null; if (theBlock.getTypeId() != Block.ar.bi){ - BlockIgniteEvent event = new BlockIgniteEvent(theBlock, igniteCause, thePlayer); + BlockIgniteEvent event = new BlockIgniteEvent(theBlock, BlockIgniteEvent.IgniteCause.SLOW_SPREAD, null); server.getPluginManager().callEvent(event); if (event.isCancelled()) { return;