9
0
mirror of https://github.com/SparklyPower/SparklyPaper.git synced 2025-12-23 08:59:19 +00:00
Commit Graph

3 Commits

Author SHA1 Message Date
MrPowerGamerBR
8e2077ebe5 Add PlayerPreMoveEvent 2025-01-08 23:08:47 -03:00
MrPowerGamerBR
017173b2b8 Revert "Only attempt to resync display entities' position when it has actually changed to fix teleport interpolation issues"
This reverts commit dcdb966994.

The patch does work, but I want to see if anyone else on the Paper team has anything to say about not periodically sending pos/rot packets
2024-12-01 11:18:23 -03:00
MrPowerGamerBR
dcdb966994 Only attempt to resync display entities' position when it has actually changed to fix teleport interpolation issues
On display entities, any new Pos/Rot packet causes the teleport duration interpolation to reset

While this does not cause issues when you spawn a display entity -> set the interpolation -> teleport after the data has been sent to the client, this DOES cause issues on entities that have lived for >60 ticks, where if you spawn a display with interpolation -> wait ~8 ticks -> teleport it, the end of the teleport will look slow due to the server resyncing the display entity position/rotation
2024-12-01 01:24:33 -03:00