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.
This commit is contained in:
@ -39,7 +39,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
Level world = this.level();
|
Level world = this.level();
|
||||||
|
|
||||||
+ // Paper start - Fix item duplication and teleport issues
|
+ // 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());
|
+ LOGGER.warn("Illegal Entity Teleport " + this + " to " + teleportTarget.newLevel() + ":" + teleportTarget.position(), new Throwable());
|
||||||
+ return null;
|
+ return null;
|
||||||
+ }
|
+ }
|
||||||
|
|||||||
Reference in New Issue
Block a user