Fix #9
This commit is contained in:
parent
6979ff543d
commit
330b6aef54
3 changed files with 7 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id "architectury-plugin" version "3.4-SNAPSHOT"
|
||||
id "dev.architectury.loom" version "1.4-SNAPSHOT" apply false
|
||||
id "dev.architectury.loom" version "1.5-SNAPSHOT" apply false
|
||||
}
|
||||
|
||||
architectury {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ dependencies {
|
|||
modApi "dev.architectury:architectury:${rootProject.architectury_version}"
|
||||
|
||||
// sodium
|
||||
modImplementation "maven.modrinth:sodium:mc1.20.1-0.5.3"
|
||||
modImplementation "maven.modrinth:sodium:mc1.20.4-0.5.8"
|
||||
}
|
||||
|
||||
publishing {
|
||||
|
|
|
|||
|
|
@ -38,10 +38,11 @@ public class SodiumConfigLoader {
|
|||
SodiumClientMod.options().performance.useBlockFaceCulling = configData.performance.use_block_face_culling;
|
||||
SodiumClientMod.options().performance.useNoErrorGLContext = configData.performance.use_no_error_g_l_context;
|
||||
|
||||
SodiumClientMod.options().notifications.hideDonationButton = configData.notifications.hide_donation_button;
|
||||
SodiumClientMod.options().notifications.hasClearedDonationButton = configData.notifications.has_cleared_donation_button;
|
||||
SodiumClientMod.options().notifications.hasSeenDonationPrompt = configData.notifications.has_seen_donation_prompt;
|
||||
|
||||
try {
|
||||
SodiumClientMod.options().writeChanges();
|
||||
SodiumGameOptions.writeToDisk(SodiumClientMod.options());
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
@ -76,7 +77,8 @@ public class SodiumConfigLoader {
|
|||
}
|
||||
|
||||
public static class Notifications {
|
||||
public boolean hide_donation_button;
|
||||
public boolean has_cleared_donation_button;
|
||||
public boolean has_seen_donation_prompt;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue