summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcoegho <coegho@yahoo.es>2014-01-06 03:53:51 +0100
committerKHobbits <rob@khobbits.co.uk>2014-02-08 00:22:56 +0000
commit20629a17a76b2f52ef58371efcf35354636c5d68 (patch)
tree97c9e248aabc527c4a1a922dc601e7edff6c59e9
parent6dccbb20d9a2d837bcd58f9b95c7eeb150d54e80 (diff)
downloadEssentials-20629a17a76b2f52ef58371efcf35354636c5d68.tar
Essentials-20629a17a76b2f52ef58371efcf35354636c5d68.tar.gz
Essentials-20629a17a76b2f52ef58371efcf35354636c5d68.tar.lz
Essentials-20629a17a76b2f52ef58371efcf35354636c5d68.tar.xz
Essentials-20629a17a76b2f52ef58371efcf35354636c5d68.zip
[Fix] fireball-fire=true now prevents fire spread from fireballs
-rw-r--r--EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java6
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));
}
}