Cuberite Forum

Full Version: Infinite potion effect
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When executing

Code:
/effect <name> 16 1000000 255

it gives me night vision for 9 minutes and 35 sec instead of showing xx:xx, thus making it infinite.

1000000sec should be somewhere around 11 days and not 10min

Thanks in advanceTongue
I think this is could be a bug in the server - the duration is cast to a short when it is sent to the client when it could be sent as a regular int. I will investigate it more soon.
I have put in a pull request to hopefully fix the issue: https://github.com/cuberite/cuberite/pull/4293