PaperMC / Paper

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

Teleporting from any other dimension to the overworld fully heals you #10999

Open TauCubed opened 2 days ago

TauCubed commented 2 days ago

Expected behavior

Your health does not change.

Observed/Actual behavior

Your health is set to full.

Steps/models to reproduce

  1. Go to hell :-)
  2. take damage
  3. minecraft:tp to someone or something in the overworld. Also works with essentials /tp, /back, /home and seemingly any other plugin teleport.

Plugin and Datapack List

image

Paper version

[16:28:56 INFO]: This server is running Paper version 1.21-37-master@dd49fba (2024-06-24T02:08:49Z) (Implementing API version 1.21-R0.1-SNAPSHOT)
You are 1 version(s) behind
Download the new version at: https://papermc.io/downloads/paper
Previous version: 1.21-15-2df432f (MC: 1.21)

Other

clean server with new world, defaults on everything.

Lulu13022002 commented 3 hours ago

Can replicate, this is because spigot doesn't recreate the player instance for some cross-world tp and respawn, they already put a "fix" (bandaid) here: https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/commits/f993563ee5a5cd2282762735d2e6a332321e82d4#nms-patches%2Fnet%2Fminecraft%2Fserver%2Flevel%2FEntityPlayer.patch?t=921