mojira.dev
MC-740

Invisibility Potions not completed in correct time displayed

When drinking an 8:00 long Invisibility potion, it should last the 8:00. However, at times it cuts out before finishing.

What I expected to happen was...:
After drinking the potion it should last the full 8:00.

What actually happened was...:
Sometimes the potion doesn’t last 8:00. Randomly cutting out

Steps to Reproduce:
1. Brew 8:00 long Invisibility potion
2. Check around the 2-3 mark left of time.
3. Observe when the potion time ends

Linked issues

Comments 4

I followed your steps exactly, and the potion wore off exactly after the 0:00 mark, as expected.

How many times did you repeat the process, When I notice this it was on multiplayer if that helps.

Successfully replicated on SMP. I didn't want to use another 24 minutes of my life to test it on SP. 😛
First try - stopped at 0:14, creative mode.
Second try - stopped at 0:05, survival mode.
Third try - stopped at 0:03, adventure mode.
So it does seem to be random.

The timer you see in the GUI is only client-side and may mismatch the "real" timer server-side. I've added a method that resends effects every 30 seconds in order to synchronize the timers more often.

Liam Simmons

(Unassigned)

Unconfirmed

Minecraft 1.4.2

Minecraft 1.4.3

Retrieved