Skip to content

Commit a3bb656

Browse files
committed
fix: update Skyblocker dungeon map handling from resting configs and increment version to 3.2.2
1 parent 70e7a82 commit a3bb656

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
- feat: add code to force-close the Zen and Krypt update notification; this should be handled by the modpack.
2-
- feat: add function to disable Skyblocker dungeon map on startup; it is being replaced by Krypt in the new configs.
1+
- fix: skyblocker configs being reset on startup.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ org.gradle.configuration-cache=false
66
# Mod properties
77
mod.name=PackCore
88
mod.id=packcore
9-
mod.version=3.2.1
9+
mod.version=3.2.2
1010
mod.group=com.github.kd_gaming1
1111

1212
# Global dependencies

src/main/java/com/github/kd_gaming1/packcore/PackCore.java

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,19 @@ public void onInitializeClient() {
101101
PackCoreConfig.write(MOD_ID);
102102
}
103103

104-
if (!PackCoreConfig.haveSetDungeonMapConfig) {
105-
DungeonMap.disableDungeonMap();
106-
PackCoreConfig.haveSetDungeonMapConfig = true;
107-
PackCoreConfig.write(MOD_ID);
108-
}
104+
ClientLifecycleEvents.CLIENT_STARTED.register(client -> {
105+
client.execute(() -> {
106+
try {
107+
if (!PackCoreConfig.haveSetDungeonMapConfig) {
108+
DungeonMap.disableDungeonMap();
109+
PackCoreConfig.haveSetDungeonMapConfig = true;
110+
PackCoreConfig.write(MOD_ID);
111+
}
112+
} catch (Exception e) {
113+
LOGGER.warn("Failed to apply DungeonMap config after startup", e);
114+
}
115+
});
116+
});
109117

110118
ClientTickEvents.END_CLIENT_TICK.register(client -> {
111119
try {

0 commit comments

Comments
 (0)