mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Fix NPE on reloads
Might fix the Tremorsense bug
This commit is contained in:
parent
d20e8d50e7
commit
f54f5f15ad
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue