Allow flint and steel
This commit is contained in:
parent
9219e50a1c
commit
02a2f98601
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user