PaperMC/paper-server/patches/sources/net/minecraft/network
Owen1212055 d300c94ec2 Properly resend entities
This resolves some issues which caused entities to not be resent correctly.
Entities that are interacted with need to be resent to the client, so we resend all the entity
data to the player whilst making sure not to clear dirty entries from the tracker. This makes
sure that values will be correctly updated to other players.

This also adds utilities to aid in further preventing entity desyncs.

This also also fixes the bug causing cancelling PlayerInteractEvent to cause items to continue
to be used despite being cancelled on the server.

For example, items being consumed but never finishing, shields being put up, etc.
The underlying issue of this is that the client modifies their synced data values,
and so we have to (forcibly) resend them in order for the client to reset their using item state.

See: https://github.com/PaperMC/Paper/pull/1896

== AT ==
public net.minecraft.server.level.ChunkMap$TrackedEntity serverEntity
2022-12-07 17:25:19 -05:00
..
chat Improve tag parser handling 2024-02-05 11:54:04 +01:00
protocol Prevent sending oversized item data in equipment and metadata 2021-12-01 12:36:25 +01:00
syncher Properly resend entities 2022-12-07 17:25:19 -05:00
Connection.java.patch Add proper async player disconnections 2024-10-16 06:41:32 -07:00
FriendlyByteBuf.java.patch Adventure 2021-01-29 17:54:03 +01:00
PacketEncoder.java.patch Handle Large Packets disconnecting client 2018-11-27 21:18:06 -05:00
VarInt.java.patch Optimize VarInts 2023-10-28 19:46:21 -04:00
Varint21FrameDecoder.java.patch Optimize NetworkManager Exception Handling 2020-07-05 22:38:18 -04:00