From eb5a87defb71ef174501d4092d7885f39a48bc77 Mon Sep 17 00:00:00 2001 From: inglettronald Date: Mon, 5 Jun 2023 10:02:32 -0500 Subject: config screen stuff --- src/main/java/com/dulkirfabric/mixin/render/GameMenuScreenMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com') diff --git a/src/main/java/com/dulkirfabric/mixin/render/GameMenuScreenMixin.java b/src/main/java/com/dulkirfabric/mixin/render/GameMenuScreenMixin.java index 020413e..b644595 100644 --- a/src/main/java/com/dulkirfabric/mixin/render/GameMenuScreenMixin.java +++ b/src/main/java/com/dulkirfabric/mixin/render/GameMenuScreenMixin.java @@ -45,7 +45,7 @@ public abstract class GameMenuScreenMixin extends ScreenMixin { */ @Inject(method = "initWidgets", at = @At(value = "FIELD", target = "Lnet/minecraft/client/gui/screen/GameMenuScreen;OPTIONS_TEXT:Lnet/minecraft/text/Text;"), locals = LocalCapture.CAPTURE_FAILEXCEPTION) private void initWidget(CallbackInfo ci, GridWidget gridWidget, GridWidget.Adder adder) { - adder.add(this.createButton(buttonText, DulkirConfig.INSTANCE::getScreen)); + adder.add(this.createButton(buttonText, new DulkirConfig()::getScreen)); } @Inject(method = "initWidgets", at = @At(value = "HEAD")) -- cgit