aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorErymanthus <erymanthus@erymant6inchmbp.lan>2022-06-13 13:52:47 -0400
committerErymanthus <erymanthus@erymant6inchmbp.lan>2022-06-13 13:52:47 -0400
commit9da4c6e8889d6238793aba52596ccc6560dedf32 (patch)
tree0dbb6b8ab9f300d749178d11df9b60b331acdfeb /src/main
parent7d45d49c8923ccc52439cf6d0faeb4b6eea70fe6 (diff)
downloadSkyblockHud-Death-Defied-9da4c6e8889d6238793aba52596ccc6560dedf32.tar.gz
SkyblockHud-Death-Defied-9da4c6e8889d6238793aba52596ccc6560dedf32.tar.bz2
SkyblockHud-Death-Defied-9da4c6e8889d6238793aba52596ccc6560dedf32.zip
that one crash i had is now in a try catch statement because duct tape is sometimes the best way to fix things (kidding! but i srsly dont know how i got a NPE out of this, so until then this commit will have to do.)
Diffstat (limited to 'src/main')
-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);