diff options
author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2024-04-23 21:09:41 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-23 08:39:41 -0230 |
commit | e9c534cd437b7d5b5ddfb0aa47042b8c6b0d4104 (patch) | |
tree | 713650baf884b442f9677e2b4c9b0cc20f90a7d7 | |
parent | 80cec767de1ba04ded02ecd682fa17d0cf42c84a (diff) | |
download | NotEnoughUpdates-e9c534cd437b7d5b5ddfb0aa47042b8c6b0d4104.tar.gz NotEnoughUpdates-e9c534cd437b7d5b5ddfb0aa47042b8c6b0d4104.tar.bz2 NotEnoughUpdates-e9c534cd437b7d5b5ddfb0aa47042b8c6b0d4104.zip |
Fix crash in crystal hollows (#1111)
Fix crash when going to crystal hollows
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java index d3910dca..d32ce209 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java @@ -563,7 +563,8 @@ public class MiningOverlay extends TextTabOverlay { if (NotEnoughUpdates.INSTANCE.config.mining.dwarvenText2.contains(configIndex) && NotEnoughUpdates.INSTANCE.config.mining.dwarvenOverlay) { lines = TablistAPI.getWidgetLinesWithoutNotification(widgetName); - if (lines.isEmpty() && !overlayStrings.contains("§l§4One or more tab widgets missing!")) { + if (lines.isEmpty() && (overlayStrings == null || !overlayStrings.contains("§l§4One or more tab widgets missing!"))) { + if (overlayStrings == null) overlayStrings = new ArrayList<>(); overlayStrings.add("§l§4One or more tab widgets missing!"); overlayStrings.add("§l§4Enable it in §b/tab§4!"); } |