From 32cc4f97d715a9ba6fb05464077612843085b01a Mon Sep 17 00:00:00 2001 From: Sobki Date: Fri, 26 Aug 2016 06:47:25 +1000 Subject: [PATCH] Fixed Tremorsense, WaterArms AllowPlantSource config (#559) --- .../projectkorra/configuration/ConfigManager.java | 2 +- .../projectkorra/projectkorra/earthbending/Tremorsense.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/projectkorra/projectkorra/configuration/ConfigManager.java b/src/com/projectkorra/projectkorra/configuration/ConfigManager.java index 82088767..ea87f855 100644 --- a/src/com/projectkorra/projectkorra/configuration/ConfigManager.java +++ b/src/com/projectkorra/projectkorra/configuration/ConfigManager.java @@ -719,7 +719,7 @@ public class ConfigManager { config.addDefault("Abilities.Water.WaterArms.Arms.MaxAlternateUsage", 50); config.addDefault("Abilities.Water.WaterArms.Arms.MaxIceShots", 8); config.addDefault("Abilities.Water.WaterArms.Arms.Cooldown", 20000); - config.addDefault("Abilities.Water.WaterArms.Arms.AllowPlantSource", false); + config.addDefault("Abilities.Water.WaterArms.Arms.AllowPlantSource", true); config.addDefault("Abilities.Water.WaterArms.Arms.Lightning.Enabled", true); config.addDefault("Abilities.Water.WaterArms.Arms.Lightning.Damage", Double.valueOf(10.0)); diff --git a/src/com/projectkorra/projectkorra/earthbending/Tremorsense.java b/src/com/projectkorra/projectkorra/earthbending/Tremorsense.java index c8313618..f472b109 100644 --- a/src/com/projectkorra/projectkorra/earthbending/Tremorsense.java +++ b/src/com/projectkorra/projectkorra/earthbending/Tremorsense.java @@ -33,7 +33,7 @@ public class Tremorsense extends EarthAbility { this.lightThreshold = (byte) getConfig().getInt("Abilities.Earth.Tremorsense.LightThreshold"); this.cooldown = getConfig().getLong("Abilities.Earth.Tremorsense.Cooldown"); - if (!bPlayer.canBend(this)) { + if (!bPlayer.canBendIgnoreBinds(this)) { return; } @@ -134,7 +134,7 @@ public class Tremorsense extends EarthAbility { BendingPlayer bPlayer = BendingPlayer.getBendingPlayer(player); if (bPlayer != null && !hasAbility(player, Tremorsense.class) - && bPlayer.canBend(getAbility("Tremorsense"))) { + && bPlayer.canBendIgnoreBinds(getAbility("Tremorsense"))) { new Tremorsense(player); } }