diff options
author | speakeasy <mekevin1917@gmail.com> | 2011-01-19 05:00:49 +0800 |
---|---|---|
committer | Warren <evilseph@unaligned.org> | 2011-01-19 05:04:50 +0800 |
commit | abc4b35bcd68af4fd1fb4c593f4e6f86a0fa4fe3 (patch) | |
tree | b4e049918835a53d374ad15e21307f3dc14279f1 /src/main/java/net/minecraft/server/BlockFire.java | |
parent | 90c52739c44dd4292825b0d74fe0d4e5413bd74c (diff) | |
download | craftbukkit-abc4b35bcd68af4fd1fb4c593f4e6f86a0fa4fe3.tar craftbukkit-abc4b35bcd68af4fd1fb4c593f4e6f86a0fa4fe3.tar.gz craftbukkit-abc4b35bcd68af4fd1fb4c593f4e6f86a0fa4fe3.tar.lz craftbukkit-abc4b35bcd68af4fd1fb4c593f4e6f86a0fa4fe3.tar.xz craftbukkit-abc4b35bcd68af4fd1fb4c593f4e6f86a0fa4fe3.zip |
Fix BlockIgniteEvent after someone updated it and missed some stuff.
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockFire.java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockFire.java | 10 |
1 files 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 3a69cef3..1af4437e 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; |