瀏覽代碼

Fix async tool lower

nossr50 6 年之前
父節點
當前提交
30df57fa35
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      Changelog.txt
  2. 1 1
      src/main/java/com/gmail/nossr50/runnables/skills/AbilityDisableTask.java

+ 1 - 0
Changelog.txt

@@ -1,5 +1,6 @@
 Version 2.1.49
 Version 2.1.49
     Fixed a bug where falling blocks were not marked as unnatural in water
     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
 Version 2.1.48
     1.14 Support
     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());
         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) {
     private void resendChunkRadiusAt(Player player, int radius) {