Paper
Paper copied to clipboard
When teleporting entities the player is riding it gets sus
Expected behavior
When teleporting entities the player is riding, like a minecart, to near world border, it will bug and the player would appear flying in one place serverside, when clientside the player walks around normally. When relogging, the player will teleport to the location of the teleported entity. Sometimes it also causes very bad lag, getting up to 2100+ mspt, but this doesn't happen always.
Observed/Actual behavior
The player should dismount correctly
Steps/models to reproduce
To reproduce: (2 players needed)
- Run
/summon pig ~ ~ ~ {Passengers:[{id:minecart}]} - Ask the second player to go in the minecart
- Teleport the pig to near world border (look at the pig and type
/tp [select uuid of pig] 2999999 ~ ~) - The pig will teleport, but the minecart and player stay at the same place. Player won't be able to dismount the minecart at this point.
- Teleport the minecart to near world border (look at the minecart and type
/tp [select uuid of minecart] 2999999 ~ ~) - Now, it gets sus. The player would dismount clientside, but serverside some weird things would happen. The player would appear flying in the same place, but clientside the player can walk and place blocks around, which could cause extreme lag
Plugin and Datapack List
Plugins (11): BlockLocker, CoreProtect, DiscordSRV, floodgate, Geyser-Spigot, InvSeePlusPlus, LuckPerms, ProtocolLib, Themis, TradeShop, ViaVersion
Paper version
This server is running Paper version git-Paper-216 (MC: 1.18.1) (Implementing API version 1.18.1-R0.1-SNAPSHOT) (Git: 30cb7d0) You are running the latest version
Other
Server config files: https://paste.gg/p/anonymous/e0c5832cc79a453f8827285691bbf294 Video: https://www.youtube.com/watch?v=EaB5Cxd_-70
A similar behavior is observed anywhere, not just near a world border. Don't have the exact steps to reproduce but have experienced this when teleporting players near an entity and instantly mounting them.
I was able to replicate these with the stated steps. In general this also happens in vanilla. I'll be testing further :+1:
Additionally related to https://bugs.mojang.com/browse/MC-44514.