Skip to content

Commit

Permalink
Fix #1428 stock placement on slope
Browse files Browse the repository at this point in the history
  • Loading branch information
cam72cam committed Dec 11, 2023
1 parent 3c169f6 commit 92f00c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static ClickResult placeStock(Player player, Player.Hand hand, World worl
Vec3d rear = centerte.getNextPosition(center, VecUtil.fromWrongYaw(rearDistance, yaw));

moveable.setRotationYaw(VecUtil.toWrongYaw(front.subtract(rear)));
moveable.setRotationPitch(VecUtil.toPitch(front.subtract(rear)) - 90);
moveable.setRotationPitch(-VecUtil.toPitch(front.subtract(rear)) - 90);
moveable.setPosition(rear.add(front.subtract(rear).scale(frontDistance / (frontDistance - rearDistance))));

ITrack frontte = ITrack.get(worldIn, front, true);
Expand Down

0 comments on commit 92f00c6

Please sign in to comment.