Railcraft

Railcraft

34M Downloads

Display issues in the anchors

Tampa opened this issue ยท 3 comments

commented

Putting in I:refuel=720 causes the the hours to display .372,3 hours aka high values bug out.

commented

Anything higher than 546 hours will cause the packet used to update the gui to roll over.

Its a Short value, it is sent in minutes remaining.

I should cap that config setting.

commented

Could it be updated by splitting the high order and low order bits of an int over two packets?
Or would you prefer to not have time longer than 546 hours?

commented

I have an int packet I could use instead of the progress bar packet, but I see no reason for a pearl to last for more than 20 days anyway, you might as well just disable the requirement entirely (set it to -1). An entire stack of 16 pearls would last nearly a year.

I'll just cap it at 480 hours.