From e9c534cd437b7d5b5ddfb0aa47042b8c6b0d4104 Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Tue, 23 Apr 2024 21:09:41 +1000 Subject: Fix crash in crystal hollows (#1111) Fix crash when going to crystal hollows --- .../io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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!"); } -- cgit