PaperMC/paper-server/patches/sources/net/minecraft/server/level
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
..
ChunkHolder.java.patch MC Utils 2016-03-28 20:55:47 -04:00
ChunkMap.java.patch Don't check if we can see non-visible entities 2023-10-21 20:52:57 +01:00
DistanceManager.java.patch Don't crash if player is attempted to be removed from untracked chunk. 2020-04-18 15:59:41 -04:00
ServerChunkCache.java.patch Add debug for sync chunk loads 2019-07-19 03:29:14 -07:00
ServerEntity.java.patch Prevent sending oversized item data in equipment and metadata 2021-12-01 12:36:25 +01:00
ServerLevel.java.patch Call CraftPlayer#onEntityRemove for all online players 2024-11-09 22:27:58 +01:00
ServerPlayer.java.patch Allow using old ender pearl behavior 2024-10-27 12:36:53 -07:00
ServerPlayerGameMode.java.patch Properly resend entities 2022-12-07 17:25:19 -05:00
TicketType.java.patch MC Utils 2016-03-28 20:55:47 -04:00
WorldGenRegion.java.patch Fix creation of invalid block entity during world generation 2024-03-30 21:06:10 +01:00