Skip to content

Commit

Permalink
Update ItemAcceptorBlockEntityRenderer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Chailotl committed Nov 18, 2024
1 parent 69559ee commit 788dd8e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@
import org.joml.Vector3f;

public record ItemAcceptorBlockEntityRenderer(BlockEntityRendererFactory.Context context) implements BlockEntityRenderer<ItemAcceptorBlockEntity> {
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;

Expand Down

0 comments on commit 788dd8e

Please sign in to comment.