13
0
geforkt von Mirrors/Paper
Paper/paper-server/patches/sources/net/minecraft
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
..
advancements Lazily create LootContext for criterions 2023-11-21 12:16:39 -03:00
commands Fix incorrect command serialization by creating new Command 2024-11-26 20:45:52 +01:00
core Registry Modification API 2023-02-27 18:28:39 -08:00
data/loot/packs Remove set damage lootable item function from compasses 2024-08-22 22:55:37 +02:00
nbt Improve tag parser handling 2024-02-05 11:54:04 +01:00
network Properly resend entities 2022-12-07 17:25:19 -05:00
resources Tag Lifecycle Events 2024-06-20 09:40:57 -07:00
server Properly resend entities 2022-12-07 17:25:19 -05:00
stats Fix spigot's Forced-Stats 2023-08-28 01:32:39 +01:00
tags Tag Lifecycle Events 2024-06-20 09:40:57 -07:00
util Validate usernames 2022-01-01 05:19:37 -08:00
world Properly resend entities 2022-12-07 17:25:19 -05:00
ChatFormatting.java.patch Adventure 2021-01-29 17:54:03 +01:00
CrashReport.java.patch Disable memory reserve allocating 2024-01-18 23:25:09 +01:00
CrashReportCategory.java.patch Deobfuscate stacktraces in log messages, crash reports, and etc. 2021-06-20 18:19:09 -07:00
Util.java.patch Separate dimensiondata executor 2024-11-28 10:35:58 +01:00