Skip to content

Commit

Permalink
Fix wrong model orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
zbx1425 committed Dec 17, 2022
1 parent d2ccebe commit 349c05c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void render(BlockEyeCandy.BlockEntityEyeCandy blockEntity, float f, @NotN
final Direction facing = IBlock.getStatePropertySafe(world, pos, BlockEyeCandy.FACING);
matrices.pushPose();
matrices.translate(0.5f, 0f, 0.5f);
PoseStackUtil.rotY(matrices, -(float)Math.toRadians(facing.toYRot()));
PoseStackUtil.rotY(matrices, -(float)Math.toRadians(facing.toYRot()) + (float)(Math.PI));
MainClient.drawScheduler.enqueue(model, new Matrix4f(matrices.last().pose()), lightToUse);

matrices.popPose();
Expand Down

0 comments on commit 349c05c

Please sign in to comment.