Alpha-s-Stuff / TinkersConstruct

Tinker a little, build a little, tinker a little more...
MIT License
84 stars 29 forks source link

Heater deletes fuels when there are fewer than 2 items #124

Open myriapoleis opened 4 months ago

myriapoleis commented 4 months ago

Minecraft Version

1.20.1

Fabric Version

0.15.10

Fabric API Version

0.92.1

Hephaestus Version

3.6.4.273

Describe your issue

When a single piece of fuel is placed into a heater (the solid fuel option for melters and alloyers), the fuel disappears without adding furnace tick time to the smelting apparatus above it. I'd guess this is because it checks the burn time of the itemstack type after decreasing the number of items in the itemstack by 1... rearrange 2 lines of code...

Crash Report

No response

Other mods

None

Tried reproducing with just Tinkers?

Yes

Performance Enchancers

None of the above

Searched for known issues?

Searched closed issues

unilock commented 3 months ago

The relevant code is here, I believe:

https://github.com/Alpha-s-Stuff/TinkersConstruct/blob/d6bb41111355acd27c26207499ba4a8a4301fc27/src/main/java/slimeknights/tconstruct/smeltery/block/entity/module/FuelModule.java#L172-L174