PaperMC/paper-server/patches/sources/net/minecraft/server/players
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
..
BanListEntry.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
GameProfileCache.java.patch Fix GameProfileCache concurrency 2020-07-11 05:09:28 -07:00
OldUsersConverter.java.patch Add setting for proxy online mode status 2016-08-05 01:03:08 +02:00
PlayerList.java.patch Properly resend entities 2022-12-07 17:25:19 -05:00
SleepStatus.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
StoredUserList.java.patch Use ConcurrentHashMap in JsonList 2018-08-07 01:24:23 -06:00
UserBanListEntry.java.patch Fix Player Banning 2014-04-15 10:32:48 +10:00
UserWhiteList.java.patch Add whitelist events 2023-05-14 12:57:15 +02:00