From 53a6cfbd037205fab421652bf8c113e7f3acc6b7 Mon Sep 17 00:00:00 2001 From: Wide-Cat Date: Sat, 24 Dec 2022 23:58:17 +0000 Subject: [PATCH] update to 1.19.3 --- gradle.properties | 6 +++--- src/main/java/carpet/mixins/ChatHud_chatUpMixin.java | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gradle.properties b/gradle.properties index c08a2a6..a8ba936 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,11 +4,11 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://fabricmc.net/use # or better: https://modmuss50.me/fabric.html - minecraft_version = 1.19.2 + minecraft_version = 1.19.3 # https://maven.fabricmc.net/net/fabricmc/yarn - yarn_mappings = 1.19.2+build.4 + yarn_mappings = 1.19.3+build.1 # https://maven.fabricmc.net/net/fabricmc/fabric-loader - loader_version = 0.14.9 + loader_version = 0.14.11 # Mod Properties mod_version = 2.1.0 diff --git a/src/main/java/carpet/mixins/ChatHud_chatUpMixin.java b/src/main/java/carpet/mixins/ChatHud_chatUpMixin.java index f9c094b..32c9b3a 100644 --- a/src/main/java/carpet/mixins/ChatHud_chatUpMixin.java +++ b/src/main/java/carpet/mixins/ChatHud_chatUpMixin.java @@ -19,18 +19,18 @@ public class ChatHud_chatUpMixin private int getOffset() { ClientPlayerEntity player = this.client.player; - if(player == null || player.isCreative() || player.isSpectator()) return 0; - int offset = player.getArmor()>0?10:0; - if(player.getAbsorptionAmount()>0) offset += 10; + if (player == null || player.isCreative() || player.isSpectator()) return 0; + int offset = player.getArmor() > 0 ? 10 : 0; + if (player.getAbsorptionAmount() > 0) offset += 10; return offset; } @ModifyArg(method = "render", index = 1, at = @At( value = "INVOKE", - target = "Lnet/minecraft/client/util/math/MatrixStack;translate(DDD)V", + target = "Lnet/minecraft/client/util/math/MatrixStack;translate(FFF)V", ordinal = 0 )) - private double offsetY(double y) + private float offsetY(float y) { return y - getOffset(); }