From 03d2a7f64e659d79338e165df4e931bbe86f24e3 Mon Sep 17 00:00:00 2001 From: Bjarne Koll Date: Fri, 1 Nov 2024 22:25:31 +0100 Subject: [PATCH] Decrease dead entity teleport warning (#11559) Decreases the warning back to its 1.21.1 level where only teleports of dead/invalid entities across dimensions were logged. --- patches/server/Fix-item-duplication-and-teleport-issues.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Fix-item-duplication-and-teleport-issues.patch b/patches/server/Fix-item-duplication-and-teleport-issues.patch index fe08e2430..341680d9e 100644 --- a/patches/server/Fix-item-duplication-and-teleport-issues.patch +++ b/patches/server/Fix-item-duplication-and-teleport-issues.patch @@ -39,7 +39,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 Level world = this.level(); + // Paper start - Fix item duplication and teleport issues -+ if (!this.isAlive() || !this.valid) { ++ if ((!this.isAlive() || !this.valid) && (teleportTarget.newLevel() != world)) { + LOGGER.warn("Illegal Entity Teleport " + this + " to " + teleportTarget.newLevel() + ":" + teleportTarget.position(), new Throwable()); + return null; + }