When playing on a vanilla server today, I discovered a really weird glitch with the invisibility potion. After I died, I was still invisible (client and server-side). Relogging didn't fix this, dying again did.
Next to the potion effect in the inventory, there was no timer for how long the potions still lasts.
This may have something to do with