From 58e60def541f21260c567a6ec939d9b8e4683167 Mon Sep 17 00:00:00 2001 From: DoKM Date: Thu, 12 Aug 2021 15:06:40 +0200 Subject: Fixed dwarven mines waypoints not working if overlay was disabled --- .../github/moulberry/notenoughupdates/overlays/MiningOverlay.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (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 bafd04b6..e6bc90ad 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java @@ -155,7 +155,7 @@ public class MiningOverlay extends TextOverlay { } }*/ - if(!NotEnoughUpdates.INSTANCE.config.mining.dwarvenOverlay) return; + if(!NotEnoughUpdates.INSTANCE.config.mining.dwarvenOverlay && NotEnoughUpdates.INSTANCE.config.mining.emissaryWaypoints == 0) return; if(SBInfo.getInstance().getLocation() == null) return; if(!SBInfo.getInstance().getLocation().equals("mining_3") && !SBInfo.getInstance().getLocation().equals("crystal_hollows")) return; @@ -217,6 +217,10 @@ public class MiningOverlay extends TextOverlay { forges = false; } } + if(!NotEnoughUpdates.INSTANCE.config.mining.dwarvenOverlay){ + overlayStrings = null; + return; + } List commissionsStrings = new ArrayList<>(); for(Map.Entry entry : commissionProgress.entrySet()) { -- cgit