Skip to content

Commit

Permalink
updated to mc 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Globox1997 committed Jun 23, 2024
1 parent 6a950b7 commit e752872
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### Added:
- Added chat scale config option
-
### Fixed:
-
### Changed:
- Updated to mc 1.20.6
- Updated to mc 1.21
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

4 changes: 2 additions & 2 deletions src/main/java/net/talkbubbles/util/RenderBubble.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> textList, int width, int height, float playerHeight, int i) {
Expand All @@ -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();

Expand Down

0 comments on commit e752872

Please sign in to comment.