Merge remote-tracking branch 'origin/1.19.4' into 1.20

This commit is contained in:
embeddedt 2023-08-18 15:39:58 -04:00
commit 9f5ccf28df
No known key found for this signature in database
GPG Key ID: A69433EC199B5613
2 changed files with 8 additions and 2 deletions

View File

@ -5,13 +5,14 @@ import net.minecraft.client.gui.components.Button;
import net.minecraft.client.gui.screens.Screen;
import net.minecraft.network.chat.CommonComponents;
import net.minecraft.network.chat.Component;
import net.minecraft.Util;
public class ModernFixConfigScreen extends Screen {
private OptionList optionList;
private Screen lastScreen;
public boolean madeChanges = false;
private Button doneButton;
private Button doneButton, wikiButton;
public ModernFixConfigScreen(Screen lastScreen) {
super(Component.translatable("modernfix.config"));
this.lastScreen = lastScreen;
@ -21,9 +22,13 @@ public class ModernFixConfigScreen extends Screen {
protected void init() {
this.optionList = new OptionList(this, this.minecraft);
this.addWidget(this.optionList);
this.wikiButton = new Button.Builder(Component.translatable("modernfix.config.wiki"), (arg) -> {
Util.getPlatform().openUri("https://github.com/embeddedt/ModernFix/wiki/Summary-of-Patches");
}).pos(this.width / 2 - 155, this.height - 29).size(150, 20).build();
this.doneButton = new Button.Builder(CommonComponents.GUI_DONE, (arg) -> {
this.onClose();
}).pos(this.width / 2 - 100, this.height - 29).size(200, 20).build();
}).pos(this.width / 2 - 155 + 160, this.height - 29).size(150, 20).build();
this.addRenderableWidget(this.wikiButton);
this.addRenderableWidget(this.doneButton);
}

View File

@ -8,6 +8,7 @@
"modernfix.perf_mod_warning": "It is recommended to install the mods, but the warning(s) can be disabled in the ModernFix config.",
"modernfix.config": "ModernFix mixin config",
"modernfix.config.done_restart": "Done (restart required)",
"modernfix.config.wiki": "Open wiki",
"modernfix.message.reload_config": "A mod config file change was detected. To prevent loading files that aren't done saving, reloading must be triggered by running /mfrc.",
"modernfix.option.on": "on",
"modernfix.option.off": "off",