From 80cec767de1ba04ded02ecd682fa17d0cf42c84a Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Tue, 23 Apr 2024 16:11:53 +1000 Subject: Fix Mining Overlay showing when swapping worlds (#1107) Fixed mining overlay showing when swapping worlds --- .../io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 7871afed..d3910dca 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java @@ -259,7 +259,7 @@ public class MiningOverlay extends TextTabOverlay { @Override public void update() { - overlayStrings = new ArrayList<>(); + overlayStrings = null; NEUConfig.HiddenProfileSpecific profileConfig = NotEnoughUpdates.INSTANCE.config.getProfileSpecific(); if (!NotEnoughUpdates.INSTANCE.config.mining.dwarvenOverlay && @@ -453,7 +453,7 @@ public class MiningOverlay extends TextTabOverlay { pickaxeCooldown = DARK_AQUA + "Pickaxe CD: \u00a7a" + (ItemCooldowns.pickaxeUseCooldownMillisRemaining / 1000) + "s"; } - + overlayStrings = new ArrayList<>(); for (int index : NotEnoughUpdates.INSTANCE.config.mining.dwarvenText2) { switch (index) { case 0: -- cgit