diff options
author | nea <nea@nea.moe> | 2023-02-01 17:10:02 +0100 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-02-01 17:10:02 +0100 |
commit | 73f764a51fc37512efaf5515a462db79a62098b8 (patch) | |
tree | f7361f38e0d79da200d75c80e04688d6a973cea7 /src/main/java/com/thatgravyboat/skyblockhud | |
parent | 248a42494373132e1f38a9c7019a84b46f70e211 (diff) | |
download | SkyblockHud-Death-Defied-73f764a51fc37512efaf5515a462db79a62098b8.tar.gz SkyblockHud-Death-Defied-73f764a51fc37512efaf5515a462db79a62098b8.tar.bz2 SkyblockHud-Death-Defied-73f764a51fc37512efaf5515a462db79a62098b8.zip |
Fix NPE in CooldownHandler
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud')
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/handlers/CooldownHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/handlers/CooldownHandler.java b/src/main/java/com/thatgravyboat/skyblockhud/handlers/CooldownHandler.java index 7f382d5..2429608 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/handlers/CooldownHandler.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/handlers/CooldownHandler.java @@ -60,7 +60,7 @@ public class CooldownHandler { if (event.type != 2 && message.equals("You used your Mining Speed Boost Pickaxe Ability!")) { if (Minecraft.getMinecraft().thePlayer.getHeldItem() != null) { IAbility ability = (IAbility) (Object) Minecraft.getMinecraft().thePlayer.getHeldItem(); - if (ability.getAbility().equals("Mining Speed Boost")) { + if ("Mining Speed Boost".equals(ability.getAbility())) { addCooldown("Mining Speed Boost", ability.getAbilityTime()); } } |