From f9de4171d42bc15dad8d32784a71044853f4ca94 Mon Sep 17 00:00:00 2001 From: Brettflan Date: Fri, 10 Jun 2011 14:16:14 -0500 Subject: [PATCH] special case added to block placement check, so flint&steel isn't prevented due to placing fire (as Bukkit sees it) --- src/org/mcteam/factions/listeners/FactionsBlockListener.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/org/mcteam/factions/listeners/FactionsBlockListener.java b/src/org/mcteam/factions/listeners/FactionsBlockListener.java index 07dd24e8..3f941103 100644 --- a/src/org/mcteam/factions/listeners/FactionsBlockListener.java +++ b/src/org/mcteam/factions/listeners/FactionsBlockListener.java @@ -1,5 +1,6 @@ package org.mcteam.factions.listeners; +import org.bukkit.Material; import org.bukkit.block.Block; import org.bukkit.entity.Player; import org.bukkit.event.block.BlockBreakEvent; @@ -24,6 +25,10 @@ public class FactionsBlockListener extends BlockListener { if (!event.canBuild()) { return; } + // special case for flint&steel, which should only be prevented by DenyUsage list + if (event.getBlockPlaced().getType() == Material.FIRE) { + return; + } if ( ! this.playerCanBuildDestroyBlock(event.getPlayer(), event.getBlock(), "build")) { event.setCancelled(true);