mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-09 08:06:54 +02:00
[Fix] fireball-fire=true now prevents fire spread from fireballs
This commit is contained in:
@@ -51,6 +51,12 @@ public class EssentialsProtectBlockListener implements Listener
|
|||||||
if (event.getCause().equals(BlockIgniteEvent.IgniteCause.LIGHTNING))
|
if (event.getCause().equals(BlockIgniteEvent.IgniteCause.LIGHTNING))
|
||||||
{
|
{
|
||||||
event.setCancelled(prot.getSettingBool(ProtectConfig.prevent_lightning_fire_spread));
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user