PaperMC / Paper

The most widely used, high performance Minecraft server that aims to fix gameplay and mechanics inconsistencies
https://papermc.io/
Other
9.7k stars 2.27k forks source link

When teleporting entities the player is riding it gets sus #7842

Open Dqu1J opened 2 years ago

Dqu1J commented 2 years ago

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)

  1. Run /summon pig ~ ~ ~ {Passengers:[{id:minecart}]}
  2. Ask the second player to go in the minecart
  3. Teleport the pig to near world border (look at the pig and type /tp [select uuid of pig] 2999999 ~ ~)
  4. 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.
  5. Teleport the minecart to near world border (look at the minecart and type /tp [select uuid of minecart] 2999999 ~ ~)
  6. 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

KyGuy2002 commented 2 years ago

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.

lynxplay commented 2 years ago

I was able to replicate these with the stated steps. In general this also happens in vanilla. I'll be testing further :+1:

lynxplay commented 2 years ago

Additionally related to https://bugs.mojang.com/browse/MC-44514.