Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
275173e538
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: 0c5d8709 SPIGOT-7400: Downgrade maven-resolver due to issues resolving certain depends 255c4fdb SPIGOT-7380: Add PlayerInteractEvent#getClickedPosition and ChiseledBookshelf#getSlot CraftBukkit Changes: b6b514b7e SPIGOT-7400: Downgrade maven-resolver due to issues resolving certain depends fcff84de9 SPIGOT-7399: Revert null check in CraftMetaItem#safelyAdd 44a4b5649 SPIGOT-7380: Add PlayerInteractEvent#getClickedPosition and ChiseledBookshelf#getSlot 676969d01 SPIGOT-7389: Handle setting null items in ChiseledBookshelf Inventory
24 Zeilen
1.4 KiB
Diff
24 Zeilen
1.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
|
|
Date: Thu, 23 Dec 2021 23:59:12 -0500
|
|
Subject: [PATCH] Fix Entity Position Desync
|
|
|
|
If entities were teleported in the first tick it would not be send to the client.
|
|
|
|
This excludes hanging entities, as this fix caused problematic behavior due to them having their own
|
|
position field.
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/level/ServerEntity.java b/src/main/java/net/minecraft/server/level/ServerEntity.java
|
|
index 63561c0044375465fa0023b2b563a6516d7fa76c..6670e657e08e130f7e0368f418379fd1ece00cdf 100644
|
|
--- a/src/main/java/net/minecraft/server/level/ServerEntity.java
|
|
+++ b/src/main/java/net/minecraft/server/level/ServerEntity.java
|
|
@@ -174,7 +174,7 @@ public class ServerEntity {
|
|
boolean flag4 = false;
|
|
boolean flag5 = false;
|
|
|
|
- if (this.tickCount > 0 || this.entity instanceof AbstractArrow) {
|
|
+ if (!(this.entity instanceof net.minecraft.world.entity.decoration.HangingEntity) || this.tickCount > 0 || this.entity instanceof AbstractArrow) { // Paper - Always update position
|
|
long k = this.positionCodec.encodeX(vec3d);
|
|
long l = this.positionCodec.encodeY(vec3d);
|
|
long i1 = this.positionCodec.encodeZ(vec3d);
|