aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-02-01 17:10:02 +0100
committernea <nea@nea.moe>2023-02-01 17:10:02 +0100
commit73f764a51fc37512efaf5515a462db79a62098b8 (patch)
treef7361f38e0d79da200d75c80e04688d6a973cea7
parent248a42494373132e1f38a9c7019a84b46f70e211 (diff)
downloadSkyblockHud-Death-Defied-73f764a51fc37512efaf5515a462db79a62098b8.tar.gz
SkyblockHud-Death-Defied-73f764a51fc37512efaf5515a462db79a62098b8.tar.bz2
SkyblockHud-Death-Defied-73f764a51fc37512efaf5515a462db79a62098b8.zip
Fix NPE in CooldownHandler
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/handlers/CooldownHandler.java2
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());
}
}