Allow flint and steel

This commit is contained in:
Sam 2017-02-24 23:40:30 +00:00
parent 9219e50a1c
commit 02a2f98601

View File

@ -17,6 +17,7 @@ import org.bukkit.event.block.BlockBreakEvent;
import org.bukkit.event.block.BlockBurnEvent; import org.bukkit.event.block.BlockBurnEvent;
import org.bukkit.event.block.BlockFadeEvent; import org.bukkit.event.block.BlockFadeEvent;
import org.bukkit.event.block.BlockIgniteEvent; import org.bukkit.event.block.BlockIgniteEvent;
import org.bukkit.event.block.BlockIgniteEvent.IgniteCause;
import org.bukkit.event.block.BlockPlaceEvent; import org.bukkit.event.block.BlockPlaceEvent;
import org.bukkit.event.block.LeavesDecayEvent; import org.bukkit.event.block.LeavesDecayEvent;
import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.entity.EntityDamageEvent;
@ -153,6 +154,11 @@ public class WorldListeners implements Listener
@EventHandler @EventHandler
public void fireSpread(BlockIgniteEvent event) public void fireSpread(BlockIgniteEvent event)
{ {
if (event.getCause() == IgniteCause.FLINT_AND_STEEL)
{
return;
}
event.setCancelled(true); event.setCancelled(true);
} }