Skip to content

Commit

Permalink
Fix accessing the wrong rotation object
Browse files Browse the repository at this point in the history
  • Loading branch information
AMereBagatelle committed May 31, 2024
1 parent b9eb7a2 commit 0d31781
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public final void render(LevelRendererAccessor worldRendererAccess, PoseStack ma
axisRot.difference(mappingRot.conjugate());
matrixStack.mulPose(axisRot);

double timeRotation = Utils.calculateRotation(this.decorations.getRotation().getSpeed(), this.decorations.getRotation().getSkyboxRotation(), world);
double timeRotation = Utils.calculateRotation(this.getRotation().getSpeed(), this.getRotation().getSkyboxRotation(), world);
matrixStack.mulPose(Axis.XP.rotationDegrees((float) timeRotation));

matrixStack.mulPose(axisRot.conjugate());
Expand Down

0 comments on commit 0d31781

Please sign in to comment.