Fix NPE on reloads

Might fix the Tremorsense bug
This commit is contained in:
MistPhizzle 2015-01-04 16:39:19 -05:00
parent d20e8d50e7
commit f54f5f15ad

View file

@ -301,8 +301,8 @@ public class Methods {
if (isRegionProtectedFromBuild(p, ability, p.getLocation())) return false;
if (Paralyze.isParalyzed(p) || Bloodbending.isBloodbended(p)) return false;
if (MetalClips.isControlled(p)) return false;
if (BendingManager.events.get(p.getWorld()).equalsIgnoreCase("SolarEclipse") && isFireAbility(ability)) return false;
if (BendingManager.events.get(p.getWorld()).equalsIgnoreCase("LunarEclipse") && isWaterAbility(ability)) return false;
if (BendingManager.events.get(p.getWorld()) != null && BendingManager.events.get(p.getWorld()).equalsIgnoreCase("SolarEclipse") && isFireAbility(ability)) return false;
if (BendingManager.events.get(p.getWorld()) != null && BendingManager.events.get(p.getWorld()).equalsIgnoreCase("LunarEclipse") && isWaterAbility(ability)) return false;
return true;
}