Paper icon indicating copy to clipboard operation
Paper copied to clipboard

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

Open ranminecraft opened this issue 1 year ago • 5 comments
trafficstars

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

ranminecraft avatar Jun 18 '24 17:06 ranminecraft

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

lynxplay avatar Jun 18 '24 17:06 lynxplay

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

Budderman18 avatar Jun 27 '24 18:06 Budderman18

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

Malfrador avatar Jun 29 '24 02:06 Malfrador

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.

Doc94 avatar Jun 30 '24 14:06 Doc94

Yes, we're pending an upstream merge

electronicboy avatar Jun 30 '24 14:06 electronicboy