Skip to content

Commit be910b1

Browse files
committed
Fully working 1.21 version without default setting option.
1 parent 57393be commit be910b1

File tree

6 files changed

+6
-325
lines changed

6 files changed

+6
-325
lines changed

src/main/java/com/kd_gaming1/config/ModConfig.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
import java.io.IOException;
1414
import java.nio.file.Path;
1515

16-
// Assuming MOD_ID is correctly defined in your Fabric mod's main class,
17-
// for example, in com.github.kdgaming0.packcore.PackCore
1816
import static com.kd_gaming1.PackCore.MOD_ID;
1917

2018
public class ModConfig {
@@ -55,10 +53,6 @@ private static void updateConfigWithDefaults() {
5553
configData.addProperty("PromptSetDefaultConfig", true);
5654
updated = true;
5755
}
58-
if (!configData.has("ShowOptifineGuide")) {
59-
configData.addProperty("ShowOptifineGuide", true);
60-
updated = true;
61-
}
6256
if (!configData.has("EnableCustomMenu")) {
6357
configData.addProperty("EnableCustomMenu", true);
6458
updated = true;
@@ -75,7 +69,6 @@ private static void createDefaultConfig() {
7569

7670
// Add your config values here
7771
defaultConfig.addProperty("PromptSetDefaultConfig", true);
78-
defaultConfig.addProperty("ShowOptifineGuide", true);
7972
defaultConfig.addProperty("EnableCustomMenu", true);
8073

8174
configData = defaultConfig; // Set the default config as current
@@ -88,11 +81,6 @@ public static boolean getPromptSetDefaultConfig() {
8881
return configData.get("PromptSetDefaultConfig").getAsBoolean();
8982
}
9083

91-
public static boolean getShowOptifineGuide() {
92-
if (configData == null) loadConfig();
93-
return configData.get("ShowOptifineGuide").getAsBoolean();
94-
}
95-
9684
public static boolean getEnableCustomMenu() {
9785
if (configData == null) loadConfig();
9886
return configData.get("EnableCustomMenu").getAsBoolean();
@@ -105,12 +93,6 @@ public static void setPromptSetDefaultConfig(boolean value) {
10593
saveConfig();
10694
}
10795

108-
public static void setShowOptifineGuide(boolean value) {
109-
if (configData == null) loadConfig();
110-
configData.addProperty("ShowOptifineGuide", value);
111-
saveConfig();
112-
}
113-
11496
public static void setEnableCustomMenu(boolean value) {
11597
if (configData == null) loadConfig();
11698
configData.addProperty("EnableCustomMenu", value);

src/main/java/com/kd_gaming1/screen/ConfigGui.kt

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -156,25 +156,16 @@ class ConfigGui : WindowScreen(ElementaVersion.V7) {
156156
createToggleSetting(
157157
innerContainer,
158158
"Prompt Set Default Config",
159-
"Show a prompt when launching the game to set the default configuration settings. This helps ensure your settings are properly configured.",
159+
"!!! THIS FUNCTION IS CURRENTLY DISABLED !!! Clicking button will do nothing!",
160160
ModConfig.getPromptSetDefaultConfig()
161161
) { newValue ->
162162
ModConfig.setPromptSetDefaultConfig(newValue)
163163
}
164164

165-
createToggleSetting(
166-
innerContainer,
167-
"Show Optifine Guide",
168-
"Display a helpful guide for installing and configuring Optifine when it's not detected. This ensures optimal performance and compatibility.",
169-
ModConfig.getShowOptifineGuide()
170-
) { newValue ->
171-
ModConfig.setShowOptifineGuide(newValue)
172-
}
173-
174165
createToggleSetting(
175166
innerContainer,
176167
"Enable Custom Main Menu",
177-
"Use a custom main menu with a skyblock-themed background. This provides a fuller Skyblock Enhanced experience. Recommended",
168+
"Use a custom main menu with a skyblock-themed background. This provides a better Skyblock Enhanced experience. Recommended",
178169
ModConfig.getEnableCustomMenu()
179170
) { newValue ->
180171
ModConfig.setEnableCustomMenu(newValue)

src/main/java/com/kd_gaming1/screen/OptifineGuide.kt

Lines changed: 0 additions & 222 deletions
This file was deleted.

0 commit comments

Comments
 (0)