diff options
Diffstat (limited to 'src/main/java/com/dulkirfabric/mixin/render/GameMenuScreenMixin.java')
-rw-r--r-- | src/main/java/com/dulkirfabric/mixin/render/GameMenuScreenMixin.java | 2 |
1 files changed, 1 insertions, 1 deletions
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")) |