mojira.dev
MC-266100

Potion effect duration UI does not work as expected with non-default tick rate

The bug

When setting the tick rate to a value higher than 20 ticks per second, the potion effect duration value in the UI is not updated correctly.

This also affects values that are significantly lower than default (for example, 1 tick per second).

To reproduce

  1. /tick rate 100

  2. Give yourself a potion of Regeneration (which has a default duration of 45 seconds) and drink it.

Observed result

(Until 1.20.3 Pre-release 2)

  1. The duration ticks down normally to about 42 seconds.

  2. The duration suddenly ticks down extremely quickly to 29 seconds.

  3. The duration keeps ticking down normally until 24 seconds, and then it disappears.

(After 1.20.3 Pre-release 2)

  1. The duration ticks down normally to 8 seconds.

  2. The duration is frozen and then ticks down extremely quickly to 5 seconds.

  3. The duration is frozen, ticks down to 4 seconds, and then it disappears.

Expected result

The time would be ticked down smoothly.

Linked issues

Attachments

Comments 1

Seems partially fixed in 1.20.3 Pre-release 2, the time is now calculated correctly, but it still does not tick down correctly in the UI tooltip.

ampolive

(Unassigned)

Confirmed

Platform

Low

Commands, UI

23w43a, 23w44a, 23w45a, 1.20.3 Pre-Release 1, 1.20.3 Pre-Release 2, ..., 1.21.1, 1.21.4, 1.21.5, 1.21.8, 25w34b

Retrieved