From 02a2f9860197f34c9af9cd507b866ae363e72729 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 24 Feb 2017 23:40:30 +0000 Subject: [PATCH] Allow flint and steel --- .../src/mineplex/gemhunters/world/WorldListeners.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Plugins/mineplex-game-gemhunters/src/mineplex/gemhunters/world/WorldListeners.java b/Plugins/mineplex-game-gemhunters/src/mineplex/gemhunters/world/WorldListeners.java index e65c83fb1..436c63cf7 100644 --- a/Plugins/mineplex-game-gemhunters/src/mineplex/gemhunters/world/WorldListeners.java +++ b/Plugins/mineplex-game-gemhunters/src/mineplex/gemhunters/world/WorldListeners.java @@ -17,6 +17,7 @@ import org.bukkit.event.block.BlockBreakEvent; import org.bukkit.event.block.BlockBurnEvent; import org.bukkit.event.block.BlockFadeEvent; import org.bukkit.event.block.BlockIgniteEvent; +import org.bukkit.event.block.BlockIgniteEvent.IgniteCause; import org.bukkit.event.block.BlockPlaceEvent; import org.bukkit.event.block.LeavesDecayEvent; import org.bukkit.event.entity.EntityDamageEvent; @@ -153,6 +154,11 @@ public class WorldListeners implements Listener @EventHandler public void fireSpread(BlockIgniteEvent event) { + if (event.getCause() == IgniteCause.FLINT_AND_STEEL) + { + return; + } + event.setCancelled(true); }