The bug
When using a totem of undying to prevent, all the potion effects (and other effects such as Bad Omen and Hero of the Village) that you had on, will get removed once upon use.
Video attachment:
The bug
When using a totem of undying to prevent, all the potion effects (and other effects such as Bad Omen and Hero of the Village) that you had on, will get removed once upon use.
Video attachment:
(Unassigned)
Unconfirmed
(Unassigned)
Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 4
Retrieved
that is how it is supposed to work