aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-06-05 10:02:32 -0500
committeringlettronald <inglettronald@gmail.com>2023-06-05 10:02:32 -0500
commiteb5a87defb71ef174501d4092d7885f39a48bc77 (patch)
tree197a6894fcfee9146c0b913f97f924638421d0aa /src/main/java
parent41832da25f9aa5cb37fee870752e64e5a9057c17 (diff)
downloadDulkirMod-Fabric-eb5a87defb71ef174501d4092d7885f39a48bc77.tar.gz
DulkirMod-Fabric-eb5a87defb71ef174501d4092d7885f39a48bc77.tar.bz2
DulkirMod-Fabric-eb5a87defb71ef174501d4092d7885f39a48bc77.zip
config screen stuff
Diffstat (limited to 'src/main/java')
-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"))