Little bug with the Calcinator GUI
traxys opened this issue ยท 6 comments
Fixed your ticket, since I don't think you meant to link to an old PR.
- I think you mean v0.2.54 (which is not one of my builds)
- Known bug, meaning to solve it when I have time
It might just be me (on mobile, so can't search for field occurrences), but are you sending itemCookTime to the client at all?
Because checking whether it's done and resetting it to 0 only happens on the server in the tile update method.
Nevermind found it. Can't you just check in ContainerCalcinator.updateProgressbar() if itemCookTime is bigger or equal to 200 and set it to 0. It's ugly, but probably a fix.
@pahimar On TileCalcinator, line 303:
@SideOnly(Side.CLIENT)
public int getBurnTimeRemainingScaled(int scale)
{
if (this.itemCookTime == 0)
{
this.itemCookTime = 200;
}
return this.deviceCookTime * scale / this.fuelBurnTime;
}
If you get rid of that if statement it fixes it. Almost sure that's the cause, and I don't see why that piece of code was there in the first place, so could that be the solution?
It probably is, mine would do the same, but yours actually fixes the source of the problem. :P