Pārlūkot izejas kodu

Removed unneeded null checks

bm01 12 gadi atpakaļ
vecāks
revīzija
c0986a1f89

+ 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
      */
     public static void watchCooldown(McMMOPlayer mcMMOPlayer, AbilityType ability) {
-        if (mcMMOPlayer == null || ability == null) {
-            return;
-        }
-
         Player player = mcMMOPlayer.getPlayer();
 
         if (!mcMMOPlayer.getAbilityInformed(ability) && cooldownOver(mcMMOPlayer.getProfile().getSkillDATS(ability) * Misc.TIME_CONVERSION_FACTOR, ability.getCooldown(), player)) {