diff options
author | DoKM <mcazzyman@gmail.com> | 2021-08-12 15:06:40 +0200 |
---|---|---|
committer | DoKM <mcazzyman@gmail.com> | 2021-08-12 15:06:40 +0200 |
commit | 58e60def541f21260c567a6ec939d9b8e4683167 (patch) | |
tree | 53c87dfff687ddf0680030c9eec60ef5526d489f /src/main/java | |
parent | 385fc2d6d028447258cc31e60326a0fc39b4be81 (diff) | |
download | NotEnoughUpdates-58e60def541f21260c567a6ec939d9b8e4683167.tar.gz NotEnoughUpdates-58e60def541f21260c567a6ec939d9b8e4683167.tar.bz2 NotEnoughUpdates-58e60def541f21260c567a6ec939d9b8e4683167.zip |
Fixed dwarven mines waypoints not working if overlay was disabled
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java | 6 |
1 files changed, 5 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 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<String> commissionsStrings = new ArrayList<>(); for(Map.Entry<String, Float> entry : commissionProgress.entrySet()) { |