From 3b6ad3d09443c148aaad97b180429827a8662897 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 5 Oct 2024 00:00:00 +0100 Subject: [PATCH] Fix model offsets when scaled --- .../unicopia/client/gui/ItemTraitsTooltipRenderer.java | 2 -- .../client/render/entity/FriendlyCreeperEntityRenderer.java | 3 +-- .../unicopia/client/render/entity/SpellbookEntityRenderer.java | 3 +-- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/ItemTraitsTooltipRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/gui/ItemTraitsTooltipRenderer.java index fcb60e49..55a68e70 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/ItemTraitsTooltipRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/ItemTraitsTooltipRenderer.java @@ -128,8 +128,6 @@ public class ItemTraitsTooltipRenderer implements Text, OrderedText, TooltipComp String count = value > 99 ? "99+" : Math.round(value) == value ? (int)value + "" : ((Math.round(value * 10) / 10F) + ""); VertexConsumerProvider.Immediate immediate = MinecraftClient.getInstance().getBufferBuilders().getEffectVertexConsumers(); - // TODO: Before 1.21 was using tessellator's buffer but we can't get it without calling begin() - //VertexConsumerProvider.immediate(Tessellator.getInstance().getBuffer()); textRenderer.draw(count, 0, 0, 16777215, true, matrices.peek().getPositionMatrix(), immediate, TextLayerType.SEE_THROUGH, 0, 15728880); immediate.draw(); matrices.pop(); diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/entity/FriendlyCreeperEntityRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/entity/FriendlyCreeperEntityRenderer.java index a26eded5..2f6e67cb 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/entity/FriendlyCreeperEntityRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/entity/FriendlyCreeperEntityRenderer.java @@ -43,8 +43,7 @@ public class FriendlyCreeperEntityRenderer extends MobEntityRenderer