diff --git a/src/com/projectkorra/ProjectKorra/Methods.java b/src/com/projectkorra/ProjectKorra/Methods.java index 06418ad8..183e6241 100644 --- a/src/com/projectkorra/ProjectKorra/Methods.java +++ b/src/com/projectkorra/ProjectKorra/Methods.java @@ -1802,6 +1802,7 @@ public class Methods { AirSwipe.instances.clear(); Tornado.instances.clear(); AirBurst.removeAll(); + Suffocate.removeAll(); Catapult.removeAll(); CompactColumn.removeAll(); @@ -1840,7 +1841,10 @@ public class Methods { Flight.removeAll(); WaterReturn.removeAll(); TempBlock.removeAll(); - removeAllEarthbendedBlocks(); + + if(ProjectKorra.plugin.getConfig().getBoolean("Properties.Earth.RevertEarthbending")) { + removeAllEarthbendedBlocks(); + } EarthPassive.removeAll(); } diff --git a/src/com/projectkorra/ProjectKorra/airbending/Suffocate.java b/src/com/projectkorra/ProjectKorra/airbending/Suffocate.java index e8d4b7db..f9a20147 100644 --- a/src/com/projectkorra/ProjectKorra/airbending/Suffocate.java +++ b/src/com/projectkorra/ProjectKorra/airbending/Suffocate.java @@ -42,7 +42,7 @@ public class Suffocate { for (Entity entity : Methods.getEntitiesAroundPoint(player.getLocation(), range)) { if (entity instanceof LivingEntity) { if (entity instanceof Player) { - if (Methods.isRegionProtectedFromBuild(player, "Bloodbending", entity.getLocation()) || entity.getEntityId() == player.getEntityId()) + if (Methods.isRegionProtectedFromBuild(player, "Suffocate", entity.getLocation()) || entity.getEntityId() == player.getEntityId()) continue; } if (System.currentTimeMillis() >= time + warmup) { @@ -55,7 +55,7 @@ public class Suffocate { Entity target = Methods.getTargetedEntity(player, range, new ArrayList()); if (target == null) return; - if (!(target instanceof LivingEntity)|| Methods.isRegionProtectedFromBuild(player, "Bloodbending", target.getLocation())) + if (!(target instanceof LivingEntity)|| Methods.isRegionProtectedFromBuild(player, "Suffocate", target.getLocation())) return; if (!canBeUsedOnUndead && isUndead(target)) { return;