From 788dd8e20b31514caacf872a2487ae601b32bd48 Mon Sep 17 00:00:00 2001 From: Chai <7232280+Chailotl@users.noreply.github.com> Date: Sun, 17 Nov 2024 22:30:01 -0500 Subject: [PATCH] Update ItemAcceptorBlockEntityRenderer.java --- .../render/block/entity/ItemAcceptorBlockEntityRenderer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/dev/hephaestus/glowcase/client/render/block/entity/ItemAcceptorBlockEntityRenderer.java b/src/main/java/dev/hephaestus/glowcase/client/render/block/entity/ItemAcceptorBlockEntityRenderer.java index 7fef5fe..4935bde 100644 --- a/src/main/java/dev/hephaestus/glowcase/client/render/block/entity/ItemAcceptorBlockEntityRenderer.java +++ b/src/main/java/dev/hephaestus/glowcase/client/render/block/entity/ItemAcceptorBlockEntityRenderer.java @@ -26,12 +26,11 @@ import org.joml.Vector3f; public record ItemAcceptorBlockEntityRenderer(BlockEntityRendererFactory.Context context) implements BlockEntityRenderer { - private static final MinecraftClient mc = MinecraftClient.getInstance(); private static final Quaternionf ITEM_LIGHT_ROTATION_3D = RotationAxis.POSITIVE_X.rotationDegrees(-15).mul(RotationAxis.POSITIVE_Y.rotationDegrees(15)); private static final Quaternionf ITEM_LIGHT_ROTATION_FLAT = RotationAxis.POSITIVE_X.rotationDegrees(-45); public void render(ItemAcceptorBlockEntity entity, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay) { - Entity camera = mc.getCameraEntity(); + Entity camera = MinecraftClient.getInstance().getCameraEntity(); if (camera == null) return;