Mojira Archive
MCPE-92916

/effect fails with durations larger than 107374182 seconds

The bug

Effects applied with a duration longer than 107374182 seconds simply fail for no reason. This is probably because translating it to ticks ends up just below the integer size limit, and an increase of one overflows and makes the value negative.

How to reproduce

  1. /effect @a speed 107374182
    It works
  2. /effect @a clear
  3. /effect @a speed 107374183
    FOV briefly changes but the effect is not applied

Expected behavior

Maximum effect duration should probably be 1000000 per Java Edition. But regardless of the chosen limit, all legal values should function properly.

Fixed

[Mod] tryashtar

2020-07-22, 08:01 AM

2020-12-08, 07:03 PM

2020-12-08, 07:03 PM

2

1

Confirmed

392371

1.16.100.50 Beta, 1.16.1

1.16.200.52 Beta, 1.16.200