der-fruhling-entertainment / create-train-perspective

Rotates the player's camera on Create Mod trains for more *intense* immersion!
https://modrinth.com/mod/create-train-perspective
MIT License
0 stars 0 forks source link

Fix jittering while standing on a turning train #54

Closed der-fruhling closed 4 months ago

der-fruhling commented 4 months ago

Resolves #47

Resolved with a method overwrite in LocalPlayer. Mojang (for some reason) overrides getViewYRot() to return getYRot() if the player is not a passenger.

Compatibility of this change is yet to be determined.

der-fruhling commented 4 months ago

This change seems to cause some slight weirdness with some mods, but the effect is not too bad so I'm going to merge this anyways. Opening a tracking issue for when I decide to fix that up (which might invoke specific compatibility but oh well).