FuelInfo

FuelInfo

321k Downloads

[BUG] Timer issue above 1 hour

Closed this issue · 3 comments

commented

FuelInfo version

1.1.0+1.20.1

Mod Loader

Fabric

Modloader version

Fabric Loader 0.16.14 with API 0.92.5+1.20.1

Minecraft Version

1.20.1

The latest.log file

No crash

Describe your issue

When using this mod alongside another that increases stack sizes beyond the vanilla limit, the timer glitches after exceeding 1 hour and displays the incorrect time.

commented

Does the other mod do something else...? This seems very unlikely to be connected to the cause of this glitch, unless:

A) they do something woefully cursed
B) This glitch is reproducible without this other mod

I need more information to work with here

commented

No, it just increases the stack size. If I put, for example, 1000 coal in the furnace, the number of stacks (which is incorrect since it’s based on 64-stack limits, but I don’t mind) as well as the number of items that can be smelted is displayed correctly. However, if I put 1000 raw iron in the furnace (which exceeds 1 hour of smelting time), it will show something like 1 minute and 20 seconds, or 56 minutes — it’s random.

I'm using this mod for stacks: Stack Size Edit

Edit: see pics

Image
Image

commented

I'd guess some form of integer overflow is at play...? Changing everything to longs just to support this doesn't seem very optimal, although you're free to compile a version that does that to fix the issue