Cuberite Forum
Infinite potion effect - Printable Version

+- Cuberite Forum (
+-- Forum: Cuberite (
+--- Forum: Development (
+--- Thread: Infinite potion effect (/thread-3204.html)

Infinite potion effect - MGlolenstine - 08-26-2018

When executing

/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

RE: Infinite potion effect - bearbin - 08-26-2018

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.

RE: Infinite potion effect - bearbin - 08-27-2018

I have put in a pull request to hopefully fix the issue: