aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java3
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!");
}