PaperMC/paper-server/patches/sources/net/minecraft/server/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
..
LegacyQueryHandler.java.patch Add missing logs for log-ips config option 2023-09-23 01:49:39 -04:00
PlayerChunkSender.java.patch Player Chunk Load/Unload Events 2020-10-05 21:25:16 +02:00
ServerCommonPacketListenerImpl.java.patch Add proper async player disconnections 2024-10-16 06:41:32 -07:00
ServerConfigurationPacketListenerImpl.java.patch misc debugging dumps 2021-02-18 20:23:28 +00:00
ServerConnectionListener.java.patch Added API to get player ha proxy address 2024-04-08 23:24:38 +08:00
ServerGamePacketListenerImpl.java.patch Properly resend entities 2022-12-07 17:25:19 -05:00
ServerHandshakePacketListenerImpl.java.patch Add Unix domain socket support 2021-05-11 17:39:22 -04:00
ServerLoginPacketListenerImpl.java.patch Validate usernames 2022-01-01 05:19:37 -08:00
ServerStatusPacketListenerImpl.java.patch Implement extended PaperServerListPingEvent 2017-10-11 15:56:26 +02:00