aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2024-04-23 16:11:53 +1000
committerGitHub <noreply@github.com>2024-04-23 03:41:53 -0230
commit80cec767de1ba04ded02ecd682fa17d0cf42c84a (patch)
tree1f2729fff4553e9ff40b3191afc3ce46f4c0875c /src
parent8b7c200770f12503df891a1443c5496f9d5f7452 (diff)
downloadNotEnoughUpdates-80cec767de1ba04ded02ecd682fa17d0cf42c84a.tar.gz
NotEnoughUpdates-80cec767de1ba04ded02ecd682fa17d0cf42c84a.tar.bz2
NotEnoughUpdates-80cec767de1ba04ded02ecd682fa17d0cf42c84a.zip
Fix Mining Overlay showing when swapping worlds (#1107)
Fixed mining overlay showing when swapping worlds
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java4
1 files changed, 2 insertions, 2 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 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: