Files
paper-mc/paper-api
Owen1212055 068a1ccda1 Improve AbstractHurtingProjectile syncing
I am sure this has been reported before but I cannot search for any bugs due to Mojang's new bug tracker.

Projectiles at high velocities very obviously go off track from their original course when sent to the client. This is due to the aggressive downsizing of velocity when sent over the client, and these entities typically have large velocity and still work just fine. We workaround this by sending the velocity for these entities exactly by using a teleport packet with relative flags and zero positional data. This prevents any possible position syncing, but sends an accurate velocity.

Then, we properly send the ClientboundProjectilePowerPacket on the first tick the entity is created, as vanilla only updates this when the delta is updated typically.
2025-06-23 22:36:49 -04:00
..