From 18361a0c905b8b1ed4865fc5c7c8b5ea88bcd566 Mon Sep 17 00:00:00 2001 From: dev_cube <69247125+dever-cube@users.noreply.github.com> Date: Wed, 29 Mar 2023 23:35:57 +0200 Subject: [PATCH 1/3] Update build.gradle Update build for 1.19.4 config --- build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index af918a0..ee27505 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'fabric-loom' version '0.12.+' + id 'fabric-loom' version '1.1-SNAPSHOT' id "com.modrinth.minotaur" version "2.+" id "com.matthewprenger.cursegradle" version "1.4.0" } @@ -23,7 +23,7 @@ sourceCompatibility = 17 targetCompatibility = 17 ext.Versions = new Properties() -Versions.load(file("Versionfiles/mcversion-1.19.3.properties").newReader()) +Versions.load(file("Versionfiles/mcversion-1.19.4.properties").newReader()) archivesBaseName = "advancementinfo" ext.projectVersion = "1.3.1" @@ -47,7 +47,7 @@ dependencies { mappings "net.fabricmc:yarn:${Versions['yarn_mappings']}:v2" modImplementation "net.fabricmc:fabric-loader:${Versions['loader_version']}" modImplementation "net.fabricmc.fabric-api:fabric-api:${Versions['fabric_version']}" - modImplementation include ("me.shedaniel.cloth:cloth-config-fabric:7.0.73") { + modImplementation include ("me.shedaniel.cloth:cloth-config-fabric:${Versions['cloth_config_version']}") { exclude(group: "net.fabricmc.fabric-api") } modCompileOnly "com.terraformersmc:modmenu:${Versions['modmenu_version']}" From b7db961f9e18a47bfa088993be3b397832496a4f Mon Sep 17 00:00:00 2001 From: dev_cube <69247125+dever-cube@users.noreply.github.com> Date: Wed, 29 Mar 2023 23:40:14 +0200 Subject: [PATCH 2/3] Update AdvancementScreenMixin.java 1.19.4 --- .../mcmod/advancementinfo/mixin/AdvancementScreenMixin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/guntram/mcmod/advancementinfo/mixin/AdvancementScreenMixin.java b/src/main/java/de/guntram/mcmod/advancementinfo/mixin/AdvancementScreenMixin.java index 2235401..94f3b80 100644 --- a/src/main/java/de/guntram/mcmod/advancementinfo/mixin/AdvancementScreenMixin.java +++ b/src/main/java/de/guntram/mcmod/advancementinfo/mixin/AdvancementScreenMixin.java @@ -64,7 +64,7 @@ public abstract class AdvancementScreenMixin extends Screen implements Advanceme private int getAdvTreeYSize(int orig) { return height - config.marginY*2 - 3*9; } @Redirect(method = "drawWindow", at=@At(value = "INVOKE", target = "net/minecraft/client/gui/screen/advancement/AdvancementsScreen.drawTexture(Lnet/minecraft/client/util/math/MatrixStack;IIIIII)V")) - public void disableDefaultDraw(AdvancementsScreen advancementsScreen, MatrixStack matrices, int x, int y, int u, int v, int width, int height) { + public void disableDefaultDraw(MatrixStack matrices, int x, int y, int u, int v, int width, int height) { // do nothing } @@ -289,4 +289,4 @@ public ClientAdvancementManager getAdvancementHandler() { public AdvancementTab myGetTab(Advancement advancement) { return getTab(advancement); } -} \ No newline at end of file +} From b09b5c4b508d3c7a6f452711b96e821a910bb9d7 Mon Sep 17 00:00:00 2001 From: dev_cube <69247125+dever-cube@users.noreply.github.com> Date: Wed, 29 Mar 2023 23:41:01 +0200 Subject: [PATCH 3/3] Update AdvancementTabMixin.java 1.19.4 --- .../mcmod/advancementinfo/mixin/AdvancementTabMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/guntram/mcmod/advancementinfo/mixin/AdvancementTabMixin.java b/src/main/java/de/guntram/mcmod/advancementinfo/mixin/AdvancementTabMixin.java index 3296ed0..f5d3966 100644 --- a/src/main/java/de/guntram/mcmod/advancementinfo/mixin/AdvancementTabMixin.java +++ b/src/main/java/de/guntram/mcmod/advancementinfo/mixin/AdvancementTabMixin.java @@ -31,7 +31,7 @@ public class AdvancementTabMixin { private int currentInfoWidth; @Inject(method="render", at = @At("HEAD")) - private void updateLayout(MatrixStack matrices, CallbackInfo ci) { + private void updateLayout(MatrixStack matrices, int x, int y, CallbackInfo ci) { if(screen != null) { currentInfoWidth = config.infoWidth.calculate(screen.width); }