Skip to content

Commit

Permalink
update to 1.19.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Wide-Cat authored and gnembon committed Mar 17, 2023
1 parent 00f37be commit 53a6cfb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/carpet/mixins/ChatHud_chatUpMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 53a6cfb

Please sign in to comment.