aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
diff options
context:
space:
mode:
authorefefury <69400149+efefury@users.noreply.github.com>2022-06-11 21:18:41 +0200
committerGitHub <noreply@github.com>2022-06-11 15:18:41 -0400
commitce23654aff4c315fde75d57c0cfde5b9e2d4bfe0 (patch)
treef93e4e757bf96b3da244ec2b82fd4a626ee87092 /src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
parent63c8be57bf124fd5470b759abdf90d4db0c44b5f (diff)
downloadnotenoughupdates-ce23654aff4c315fde75d57c0cfde5b9e2d4bfe0.tar.gz
notenoughupdates-ce23654aff4c315fde75d57c0cfde5b9e2d4bfe0.tar.bz2
notenoughupdates-ce23654aff4c315fde75d57c0cfde5b9e2d4bfe0.zip
Trophy Fishing Tab (#163)
* trophy fishing cool stuff Co-Authored-By: jani270 <69345714+jani270@users.noreply.github.com> * noob * yep bugs: - not uploading when swapping profiles - while hovering over lowest slot, left skulls have light issue Co-Authored-By: jani270 <69345714+jani270@users.noreply.github.com> * change when switching profiles * things lighting bugs add trophy page to pageLayout on startup disable dungeon map on startup * map message * 🤡 but ok Co-authored-by: IRONM00N <64110067+IRONM00N@users.noreply.github.com> * i hate you iron Co-authored-by: jani270 <69345714+jani270@users.noreply.github.com> Co-authored-by: Lulonaut <lulonaut@tutanota.de> Co-authored-by: IRONM00N <64110067+IRONM00N@users.noreply.github.com>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
index 9f7a98b1..bd54dfba 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
@@ -232,6 +232,17 @@ public class NotEnoughUpdates {
config.apiData.apiKey = config.apiKey.apiKey;
config.apiKey = null;
}
+
+ if (config.dungeonMap.dmEnable &&
+ !NotEnoughUpdates.INSTANCE.config.hidden.dev) {
+ config.dungeonMap.dmEnable = false;
+ }
+
+ //add the trophy fishing tab to the config
+ if (config.profileViewer.pageLayout.size() == 8) {
+ config.profileViewer.pageLayout.add(8);
+ }
+ saveConfig();
}
MinecraftForge.EVENT_BUS.register(this);