PaperMC / Paper

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

Spawn player does not receive the effects update the regain their movement speed #10907

Open ranminecraft opened 2 weeks ago

ranminecraft commented 2 weeks ago

Expected behavior

respawn player should not have any potion effects

Observed/Actual behavior

spawn player does not receive the potion effects update the regain their movement speed and drinking milk doesn't remove slow effects from the player.

Steps/models to reproduce

player.addPotionEffect(new PotionEffect(PotionEffectType.SLOWNESS, 80, 5, true)); then /kill player

Plugin and Datapack List

testplugin

Paper version

Paper-1.21-4

Other

https://github.com/PaperMC/Paper/assets/69817107/a2a97edf-cf1e-4d91-b0fd-4922448c6050

lynxplay commented 2 weeks ago

Replicable as in "when dying, the player does not receive the attribtue update the regain their movement speed

Budderman18 commented 6 days ago

this seems to effect other potion effects too, dying with strength makes it so you cant attack anything without at least a stone sword

Malfrador commented 4 days ago

Until this is fixed either by Paper or upstream, I have made a simple plugin to work around the issue.

Doc94 commented 3 days ago

Well this not happen in upstream for what i check. In upstream this seems to fix the issue https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/commits/cdd05bc7faac70a5341ce9cd6524ac2ed0a80651#nms-patches%2Fnet%2Fminecraft%2Fworld%2Fentity%2FEntityLiving.patch but just for future effects if you still has a effect use this and die the effect its not removed unless you give the same effect again.

electronicboy commented 3 days ago

Yes, we're pending an upstream merge