From e7528721c73ce1ea53c4f4c892ad4e46ea5440f2 Mon Sep 17 00:00:00 2001 From: Globox1997 Date: Sun, 23 Jun 2024 12:22:54 +0200 Subject: [PATCH] updated to mc 1.21 --- CHANGELOG.md | 4 ++-- gradle.properties | 12 ++++++------ src/main/java/net/talkbubbles/util/RenderBubble.java | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb39899..4339063 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ### Added: -- Added chat scale config option +- ### Fixed: - ### Changed: -- Updated to mc 1.20.6 \ No newline at end of file +- Updated to mc 1.21 \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 2c5e8fa..6c08e03 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,18 +3,18 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://fabricmc.net/use - minecraft_version=1.20.6 - yarn_mappings=1.20.6+build.1 + minecraft_version=1.21 + yarn_mappings=1.21+build.2 loader_version=0.15.11 # Mod Properties - mod_version = 1.1.1 + mod_version = 1.0.8 maven_group = net.talkbubbles archives_base_name = talkbubbles # Dependencies # currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api - fabric_version=0.98.0+1.20.6 - cloth_config_version=14.0.126 - mod_menu_version=10.0.0-beta.1 + fabric_version=0.100.3+1.21 + cloth_config_version=15.0.127 + mod_menu_version=11.0.0 \ No newline at end of file diff --git a/src/main/java/net/talkbubbles/util/RenderBubble.java b/src/main/java/net/talkbubbles/util/RenderBubble.java index 014ad12..5892efe 100644 --- a/src/main/java/net/talkbubbles/util/RenderBubble.java +++ b/src/main/java/net/talkbubbles/util/RenderBubble.java @@ -24,7 +24,7 @@ @Environment(EnvType.CLIENT) public class RenderBubble { - private static final Identifier BACKGROUND = new Identifier("talkbubbles:textures/gui/background.png"); + private static final Identifier BACKGROUND = Identifier.of("talkbubbles:textures/gui/background.png"); public static void renderBubble(MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, TextRenderer textRenderer, EntityRenderDispatcher entityRenderDispatcher, List textList, int width, int height, float playerHeight, int i) { @@ -35,7 +35,7 @@ public static void renderBubble(MatrixStack matrixStack, VertexConsumerProvider matrixStack.translate(0.0D, playerHeight + 0.9F + (backgroundHeight > 5 ? 0.1F : 0.0F) + TalkBubbles.CONFIG.chatHeight, 0.0D); matrixStack.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(toEulerXyzDegrees(entityRenderDispatcher.getRotation()).y())); - matrixStack.scale(-0.025F * TalkBubbles.CONFIG.chatScale, -0.025F * TalkBubbles.CONFIG.chatScale, 0.025F); + matrixStack.scale(0.025F * TalkBubbles.CONFIG.chatScale, -0.025F * TalkBubbles.CONFIG.chatScale, 0.025F); Matrix4f matrix4f = matrixStack.peek().getPositionMatrix();