浏览代码

Removed unneeded null checks

bm01 12 年之前
父节点
当前提交
c0986a1f89
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      src/main/java/com/gmail/nossr50/util/skills/SkillUtils.java

+ 0 - 4
src/main/java/com/gmail/nossr50/util/skills/SkillUtils.java

@@ -94,10 +94,6 @@ public class SkillUtils {
      * @param ability The ability to watch cooldowns for
      * @param ability The ability to watch cooldowns for
      */
      */
     public static void watchCooldown(McMMOPlayer mcMMOPlayer, AbilityType ability) {
     public static void watchCooldown(McMMOPlayer mcMMOPlayer, AbilityType ability) {
-        if (mcMMOPlayer == null || ability == null) {
-            return;
-        }
-
         Player player = mcMMOPlayer.getPlayer();
         Player player = mcMMOPlayer.getPlayer();
 
 
         if (!mcMMOPlayer.getAbilityInformed(ability) && cooldownOver(mcMMOPlayer.getProfile().getSkillDATS(ability) * Misc.TIME_CONVERSION_FACTOR, ability.getCooldown(), player)) {
         if (!mcMMOPlayer.getAbilityInformed(ability) && cooldownOver(mcMMOPlayer.getProfile().getSkillDATS(ability) * Misc.TIME_CONVERSION_FACTOR, ability.getCooldown(), player)) {