summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect
diff options
context:
space:
mode:
authorIaccidentally <coryhuckaby@gmail.com>2012-10-28 12:58:01 -0400
committerIaccidentally <coryhuckaby@gmail.com>2012-10-28 12:58:01 -0400
commite0d189a5e0a4bd953b3372212966d2bc826fe624 (patch)
treeda36b213a28c0fc729c70be5897e2eaf17fbcecb /EssentialsProtect
parent91c193b773e121fdf8da241b91adb475f3b12072 (diff)
downloadEssentials-e0d189a5e0a4bd953b3372212966d2bc826fe624.tar
Essentials-e0d189a5e0a4bd953b3372212966d2bc826fe624.tar.gz
Essentials-e0d189a5e0a4bd953b3372212966d2bc826fe624.tar.lz
Essentials-e0d189a5e0a4bd953b3372212966d2bc826fe624.tar.xz
Essentials-e0d189a5e0a4bd953b3372212966d2bc826fe624.zip
oops! :: fix wither spawn explosion blocking
Diffstat (limited to 'EssentialsProtect')
-rw-r--r--EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java2
-rw-r--r--EssentialsProtect/src/com/earth2me/essentials/protect/ProtectConfig.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java
index bb406ebf9..30a516667 100644
--- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java
+++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java
@@ -224,7 +224,7 @@ public class EssentialsProtectEntityListener implements Listener
}
return;
}
- if (event.getEntity() instanceof WitherSkull
+ if (event.getEntity() instanceof Wither
&& prot.getSettingBool(ProtectConfig.prevent_witherskull_spawnexplosion))
{
event.setCancelled(true);
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/ProtectConfig.java b/EssentialsProtect/src/com/earth2me/essentials/protect/ProtectConfig.java
index c53e921d9..0ef389147 100644
--- a/EssentialsProtect/src/com/earth2me/essentials/protect/ProtectConfig.java
+++ b/EssentialsProtect/src/com/earth2me/essentials/protect/ProtectConfig.java
@@ -37,7 +37,7 @@ public enum ProtectConfig
prevent_fireball_playerdmg("protect.prevent.fireball-playerdamage", false),
prevent_witherskull_explosion("protect.prevent.witherskull-explosion", false),
prevent_witherskull_playerdmg("protect.prevent.witherskull-playerdamage", false),
- prevent_witherskull_spawnexplosion("protect.prevent.witherskull-spawnexplosion", false),
+ prevent_wither_spawnexplosion("protect.prevent.wither-spawnexplosion", false),
prevent_creeper_explosion("protect.prevent.creeper-explosion", true),
prevent_creeper_playerdmg("protect.prevent.creeper-playerdamage", false),
prevent_creeper_blockdmg("protect.prevent.creeper-blockdamage", false),