From 73f764a51fc37512efaf5515a462db79a62098b8 Mon Sep 17 00:00:00 2001 From: nea Date: Wed, 1 Feb 2023 17:10:02 +0100 Subject: Fix NPE in CooldownHandler --- .../java/com/thatgravyboat/skyblockhud/handlers/CooldownHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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()); } } -- cgit