diff options
author | coegho <coegho@yahoo.es> | 2014-01-06 03:53:51 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2014-02-08 00:22:56 +0000 |
commit | ce48f2f326e6c2af511d722a2ae5c8084665b219 (patch) | |
tree | c80cb348aab3042322f6cb6fa7b09b32478581c5 /EssentialsProtect/src/com/earth2me | |
parent | 2affce875cc1de4dadc01b070b3a3f1085ba2e8c (diff) | |
download | Essentials-ce48f2f326e6c2af511d722a2ae5c8084665b219.tar Essentials-ce48f2f326e6c2af511d722a2ae5c8084665b219.tar.gz Essentials-ce48f2f326e6c2af511d722a2ae5c8084665b219.tar.lz Essentials-ce48f2f326e6c2af511d722a2ae5c8084665b219.tar.xz Essentials-ce48f2f326e6c2af511d722a2ae5c8084665b219.zip |
[Fix] fireball-fire=true now prevents fire spread from fireballs
Diffstat (limited to 'EssentialsProtect/src/com/earth2me')
-rw-r--r-- | EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java index 0edbffcde..70ae90e03 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java @@ -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));
}
}
|