Skip to content

Fix kitchen door hinges ending up on the wrong side - #66

Open
JustRomanBZK wants to merge 1 commit into
GTNewHorizons:masterfrom
JustRomanBZK:fix/kitchen-door-hinge-side
Open

Fix kitchen door hinges ending up on the wrong side#66
JustRomanBZK wants to merge 1 commit into
GTNewHorizons:masterfrom
JustRomanBZK:fix/kitchen-door-hinge-side

Conversation

@JustRomanBZK

Copy link
Copy Markdown

Summary

There were 2 problems.

  1. Rounding towards zero instead of downwards.
  2. Server and client hold yaw differently.

Because of this, after negative yaw accumulates:
CLIENT yaw=-1842.449 bR=-19.971654891967773 flipped=false orientation=0
SERVER yaw=-42.599 bR=0.02667778730392456 flipped=true orientation=0

Client and server mismatched on which side to draw the hinge on.
Because of that, for 1 tick we saw the block being placed correctly.

Fix: use floor_double instead of int/abs.

After the fix:
CLIENT yaw=-2499.151 bR=-27.268342971801758 flipped=false orientation=0
SERVER yaw=-339.30078 bR=-3.2700085639953613 flipped=false orientation=0

Checklist

  • I have tested this PR in DevEnv
  • I have tested this PR in Fullpack
  • This PR is in compliance with the GTNH AI Policy
  • This PR requires another PR in order to merge

@JustRomanBZK JustRomanBZK changed the title fix doors Fix kitchen door hinges ending up on the wrong side Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant