Skip to content

Commit

Permalink
Fix model position
Browse files Browse the repository at this point in the history
  • Loading branch information
WenXin20 committed Jan 16, 2025
1 parent 240290b commit 3a41228
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ protected void applyRotations(PiranhaPlantEntity animatable, PoseStack poseStack
break;
case NORTH:
poseStack.mulPose(Axis.XP.rotationDegrees(-90));
poseStack.translate(0, 0, 0.5D);
poseStack.translate(0, -0.5, 0.5);
break;
case SOUTH:
poseStack.mulPose(Axis.XP.rotationDegrees(90));
poseStack.translate(0, 0, -0.5D);
poseStack.translate(0, -0.5, -0.5);
break;
case EAST:
poseStack.mulPose(Axis.ZP.rotationDegrees(-90));
poseStack.translate(-0.5D, 0, 0);
poseStack.translate(-0.5, -0.5, 0);
break;
case WEST:
poseStack.mulPose(Axis.ZP.rotationDegrees(90));
poseStack.translate(0.5D, 0, 0);
poseStack.translate(0.5, -0.5, 0);
break;
}
}
Expand Down

0 comments on commit 3a41228

Please sign in to comment.