Explorar o código

Fix async tool lower

nossr50 %!s(int64=6) %!d(string=hai) anos
pai
achega
30df57fa35

+ 1 - 0
Changelog.txt

@@ -1,5 +1,6 @@
 Version 2.1.49
     Fixed a bug where falling blocks were not marked as unnatural in water
+    Fixed a bug where Ability cooldowns were being called async when they are sync only
 
 Version 2.1.48
     1.14 Support

+ 1 - 1
src/main/java/com/gmail/nossr50/runnables/skills/AbilityDisableTask.java

@@ -63,7 +63,7 @@ public class AbilityDisableTask extends BukkitRunnable {
 
 
         SkillUtils.sendSkillMessage(player, NotificationType.SUPER_ABILITY_ALERT_OTHERS, ability.getAbilityPlayerOff());
-        new AbilityCooldownTask(mcMMOPlayer, ability).runTaskLaterAsynchronously(mcMMO.p, PerksUtils.handleCooldownPerks(player, ability.getCooldown()) * Misc.TICK_CONVERSION_FACTOR);
+        new AbilityCooldownTask(mcMMOPlayer, ability).runTaskLater(mcMMO.p, PerksUtils.handleCooldownPerks(player, ability.getCooldown()) * Misc.TICK_CONVERSION_FACTOR);
     }
 
     private void resendChunkRadiusAt(Player player, int radius) {