aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2024-04-24 01:58:24 +1000
committerGitHub <noreply@github.com>2024-04-23 17:58:24 +0200
commit0308131920eab60a9151f2bf471c524d46ce0a02 (patch)
tree50c51626d93d2278865717a4c3357c24d2e6fec9 /src
parente9c534cd437b7d5b5ddfb0aa47042b8c6b0d4104 (diff)
downloadNotEnoughUpdates-0308131920eab60a9151f2bf471c524d46ce0a02.tar.gz
NotEnoughUpdates-0308131920eab60a9151f2bf471c524d46ce0a02.tar.bz2
NotEnoughUpdates-0308131920eab60a9151f2bf471c524d46ce0a02.zip
Fix powder showing empty on dwarven overlay when its not on tablist (#1112)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java6
1 files changed, 3 insertions, 3 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 d32ce209..90433a51 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java
@@ -460,10 +460,10 @@ public class MiningOverlay extends TextTabOverlay {
overlayStrings.addAll(commissionsStrings);
break;
case 1:
- overlayStrings.add(mithrilPowder);
+ if (!mithrilPowder.isEmpty()) overlayStrings.add(mithrilPowder);
break;
case 2:
- overlayStrings.add(gemstonePowder);
+ if (!gemstonePowder.isEmpty()) overlayStrings.add(gemstonePowder);
break;
case 3:
if (profileConfig != null) {
@@ -481,7 +481,7 @@ public class MiningOverlay extends TextTabOverlay {
overlayStrings.add("§3Sky Mall: §a" + SkyMallDisplay.Companion.getDisplayText());
break;
case 7:
- overlayStrings.add(glacitePowder);
+ if (!glacitePowder.isEmpty()) overlayStrings.add(glacitePowder);
break;
}
}