Revert "Try to fix FreezeMelt NPE"

This reverts commit ef812566da.
This commit is contained in:
MistPhizzle 2014-07-13 16:40:51 -04:00
parent 599ecf6426
commit 287006936a
2 changed files with 1 additions and 4 deletions

Binary file not shown.

View file

@ -91,10 +91,7 @@ public class FreezeMelt {
public static boolean canThaw(Block block) {
if (frozenblocks.containsKey(block)) {
for (Player player : block.getWorld().getPlayers()) {
if (Methods.getBoundAbility(player) == null) {
return true;
}
if (Methods.getBoundAbility(player).equalsIgnoreCase("OctopusForm")) {
if (Methods.getBoundAbility(player) != null && Methods.getBoundAbility(player).equalsIgnoreCase("OctopusForm")) {
if (block.getLocation().distance(player.getLocation()) <= OctopusForm.radius + 2)
return false;
}