aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/overlay/OverlayHud.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/overlay/OverlayHud.java b/src/main/java/com/thatgravyboat/skyblockhud/overlay/OverlayHud.java
index 70cb153..4efef81 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/overlay/OverlayHud.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/overlay/OverlayHud.java
@@ -66,11 +66,13 @@ public class OverlayHud extends Gui {
} else if (LocationHandler.getCurrentLocation().getCategory().equals(LocationCategory.MUSHROOMDESERT)) {
drawTrapperOrPelts(width, offset, mc);
} else if (LocationHandler.getCurrentLocation().getCategory().isMiningCategory()) {
- if (MinesHandler.currentEvent.display) {
- drawDwarvenEvent(width, offset, mc);
- } else {
- drawMiningPowders(width, offset, mc);
- }
+ try {
+ if (MinesHandler.currentEvent.display) {
+ drawDwarvenEvent(width, offset, mc);
+ } else {
+ drawMiningPowders(width, offset, mc);
+ }
+ } catch (Exception ignored) {}
} else if (LocationHandler.getCurrentLocation().getCategory().equals(LocationCategory.PARK) && ParkIslandHandler.isRaining()) {
if (LocationHandler.getCurrentLocation().equals(Locations.HOWLINGCAVE)) {
drawSlayer(width, offset, mc);