From 01e341aba8c9d5cfe05d29c05737867706c4d3d3 Mon Sep 17 00:00:00 2001 From: ImproperIssues <114215797+ItziSpyder@users.noreply.github.com> Date: Mon, 13 May 2024 17:21:56 -0700 Subject: [PATCH] updated to minecraft version 1.20.6 --- gradle.properties | 9 +++++---- .../improperui/mixin/MixinMinecraftClient.java | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/gradle.properties b/gradle.properties index e737ca6..c0588c5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,11 +1,12 @@ # Done to increase the memory available to gradle. org.gradle.jvmargs=-Xmx1G +org.gradle.java.home=/Program Files/Java/jdk-21 # Fabric Properties # check these on https://modmuss50.me/fabric.html - minecraft_version=1.20.4 - yarn_mappings=1.20.4+build.1 - loader_version=0.15.7 + minecraft_version=1.20.6 + yarn_mappings=1.20.6+build.1 + loader_version=0.15.10 # Mod Properties mod_version = 0.0.3-BETA @@ -14,4 +15,4 @@ org.gradle.jvmargs=-Xmx1G # Dependencies # check this on https://modmuss50.me/fabric.html - fabric_version=0.96.0+1.20.4 + fabric_version=0.98.0+1.20.6 diff --git a/src/main/java/io/github/itzispyder/improperui/mixin/MixinMinecraftClient.java b/src/main/java/io/github/itzispyder/improperui/mixin/MixinMinecraftClient.java index e0c46ad..1c74177 100644 --- a/src/main/java/io/github/itzispyder/improperui/mixin/MixinMinecraftClient.java +++ b/src/main/java/io/github/itzispyder/improperui/mixin/MixinMinecraftClient.java @@ -18,8 +18,8 @@ public abstract class MixinMinecraftClient { @Shadow @Final private FontManager fontManager; @Shadow @Final public static Identifier UNICODE_FONT_ID; - @Inject(method = "initFont", at = @At("TAIL")) - public void initFont(boolean forcesUnicode, CallbackInfo ci) { + @Inject(method = "onFontOptionsChanged", at = @At("TAIL")) + public void initFont(CallbackInfo ci) { var fonts = ((FontManagerAccessor)this.fontManager); ImproperUIClient.getInstance().codeRenderer = fonts.createRenderer(UNICODE_FONT_ID); }