Skip to content

0.4.2 - Understanding Fast-Moving players, better API (MC 1.21.4 + ports to 1.21.1 and 1.21.5)

Choose a tag to compare

@EnderKill98 EnderKill98 released this 06 Apr 16:35
· 28 commits to main since this release

The receiving-logic of packets from other players was improved

  • The current player position is no longer used/required. Instead the first packet is assumed to be the first magic pdu and automatically sets as guessed player position that is used for the remaining packets
    • Advantage: The receiver will now be able to understand what was sent if e.g.:
      • The sender was moving fast (server reporting a wrong packet to the receiver, the sender assuming a wrong position)
      • There was a sudden pose-change that the sender would have a hard time accounting for (e.g. starting to glide, crouch, which shifts the eye position)
    • Disadvantage: If a player would move during along transmissions (over multiple), the receiver will always keep assuming the initial position from a packet start
      • It probably wouldn't have worked anyway, due to me not caring if the current position was already sent or not, or the server not sending you that position anyway

So this means that people flying by with an elytra, flying away or landing or moving fast otherwise can still send packets to other players. Or rather, you can receive them when you have this version of the mod. The sender-side actually didn't change a bit. It's just smarter receiving (and does not cause any incompatibility, except if you might have relied on the scenario the listed Disadvantage above)

There is now a resemblance of an API

This makes using this mod orders of magnitude easier. No more complex mixin stuff (which should keep working though). See README.md for instructions.

Dirty ports of this version to MC 1.21.1 and MC 1.21.5

Because I was bored, I ported this version to MC 1.21/MC1.21..1 and MC 1.21.5 as well (source in branches 0.4.2-port-for-mc1.21.1 and 0.4.2-port-for-mc1.21.5).