From 401bdfa9ac36d371d38ac62f59dd89a73230ab2c Mon Sep 17 00:00:00 2001 From: T00thpick1 Date: Wed, 15 May 2013 20:35:30 -0400 Subject: [PATCH] Reset ability modes safely --- .../java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java b/src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java index dd60d926e..302817152 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java +++ b/src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java @@ -20,6 +20,7 @@ import com.gmail.nossr50.datatypes.spout.huds.McMMOHud; import com.gmail.nossr50.events.experience.McMMOPlayerXpGainEvent; import com.gmail.nossr50.party.PartyManager; import com.gmail.nossr50.party.ShareHandler; +import com.gmail.nossr50.runnables.skills.AbilityDisableTask; import com.gmail.nossr50.skills.SkillManager; import com.gmail.nossr50.skills.acrobatics.AcrobaticsManager; import com.gmail.nossr50.skills.archery.ArcheryManager; @@ -182,7 +183,8 @@ public class McMMOPlayer { */ public void resetAbilityMode() { for (AbilityType ability : AbilityType.values()) { - setAbilityMode(ability, false); + // Currently disable and handle any special deactivate code + new AbilityDisableTask(this, ability).run(); } }