Skip to content

Commit

Permalink
Removed changelog Config Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
XDPXI committed Nov 22, 2024
1 parent ad16ac0 commit 542a2a0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,11 @@ public Screen getModConfigScreen(Screen parent) {

builder.getOrCreateCategory(Text.of("Main"))
.addEntry(createBooleanToggle(builder, "Add Custom Modmenu Badges", configData.isCustomBadges(), configData::setCustomBadges, true))
.addEntry(createBooleanToggle(builder, "Show Changelog On Every Startup", configData.isChangelogEveryStartup(), configData::setChangelogEveryStartup, false))
.addEntry(createBooleanToggle(builder, "Disable Plugins", configData.isDisablePlugins(), newVersion -> {
configData.setDisablePlugins(newVersion);
updatePluginsCategory(builder, newVersion);
write(configData);
}, false))
.addEntry(createBooleanToggle(builder, "Disable Changelog", configData.isDisableChangelog(), configData::setDisableChangelog, false))
.addEntry(createBooleanToggle(builder, "Disable Title Screen Warnings", configData.isDisableTitlePopups(), configData::setDisableTitlePopups, false));

updatePluginsCategory(builder, configData.isDisablePlugins());
Expand Down
18 changes: 0 additions & 18 deletions src/client/java/dev/xdpxi/xdlib/config/configManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ public Screen getModConfigScreen(ConfigData configData, Screen parent) {

public static class ConfigData {
private boolean customBadges = true;
private boolean changelogEveryStartup = false;
private boolean disablePlugins = false;
private boolean disableChangelog = false;
private boolean disableTitlePopups = false;
private boolean unverifiedPlugins = false;
private boolean devMode = false;
Expand All @@ -85,14 +83,6 @@ public void setCustomBadges(boolean customBadges) {
this.customBadges = customBadges;
}

public boolean isChangelogEveryStartup() {
return changelogEveryStartup;
}

public void setChangelogEveryStartup(boolean changelogEveryStartup) {
this.changelogEveryStartup = changelogEveryStartup;
}

public boolean isDisablePlugins() {
return disablePlugins;
}
Expand All @@ -101,14 +91,6 @@ public void setDisablePlugins(boolean disablePlugins) {
this.disablePlugins = disablePlugins;
}

public boolean isDisableChangelog() {
return disableChangelog;
}

public void setDisableChangelog(boolean disableChangelog) {
this.disableChangelog = disableChangelog;
}

public boolean isDisableTitlePopups() {
return disableTitlePopups;
}
Expand Down

0 comments on commit 542a2a0

Please sign in to comment.