mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-02 02:33:08 +00:00
[Fix] fireball-fire=true now prevents fire spread from fireballs
This commit is contained in:
parent
2affce875c
commit
ce48f2f326
1 changed files with 6 additions and 0 deletions
|
@ -51,6 +51,12 @@ public class EssentialsProtectBlockListener implements Listener
|
|||
if (event.getCause().equals(BlockIgniteEvent.IgniteCause.LIGHTNING))
|
||||
{
|
||||
event.setCancelled(prot.getSettingBool(ProtectConfig.prevent_lightning_fire_spread));
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.getCause().equals(BlockIgniteEvent.IgniteCause.FIREBALL))
|
||||
{
|
||||
event.setCancelled(prot.getSettingBool(ProtectConfig.prevent_fireball_fire));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue