13
0
geforkt von Mirrors/Paper
Paper/paper-server/patches/sources/net/minecraft/world
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
..
damagesource Fix DamageSource API 2024-03-09 14:13:04 -08:00
effect Fire EntityChangeBlockEvent in more places 2021-08-09 20:45:46 -07:00
entity Properly resend entities 2022-12-07 17:25:19 -05:00
food EntityRegainHealthEvent isFastRegen API 2016-04-22 01:43:11 -05:00
inventory Add AnvilView#bypassEnchantmentLevelRestriction 2024-10-06 16:46:36 -03:00
item Properly resend entities 2022-12-07 17:25:19 -05:00
level Add registry entry and builders 2024-06-13 23:45:32 +02:00
scores Don't save empty scoreboard teams to scoreboard.dat 2016-05-07 23:33:08 -04:00
BossEvent.java.patch Adventure 2021-01-29 17:54:03 +01:00
CompoundContainer.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Container.java.patch Add missing InventoryHolders to inventories 2022-01-24 00:09:02 -08:00
RandomizableContainer.java.patch Validate ResourceLocation in NBT reading 2024-01-04 13:49:14 +01:00
SimpleContainer.java.patch Fix inventories returning null Locations 2023-03-15 18:29:45 -07:00