aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/dulkirfabric
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/dulkirfabric')
-rw-r--r--src/main/java/com/dulkirfabric/mixin/render/GameMenuScreenMixin.java2
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"))