Steam Mining Drill: refilling fuel from a dank from Dank Storage may void all but 64 of the item in that slot.
James103 opened this issue ยท 0 comments
Version info
Modern Industrialization 1.6.4
Dank Storage 4.3
Minecraft 1.19.2
Fabric Loader 0.14.17
Modpack: All of Fabric 6 1.5.x (tested 1.5.0)
Actual result
If a Steam Mining Drill is low on fuel, refilling its fuel from a dank from Dank Storage may result in loss of all but 64 of the item in that stack, regardless of the dank's tier. This is most likely because the entire stack (of 27,000 Lignite Coal Dust for example) is tried to be inserted into the Steam Mining Drill's fuel slot, which can only hold a stack of 64.
Expected result
The Steam Mining Drill should only take as much fuel as necessary to refill its fuel stack and leave the rest in its slot in the Dank without voiding any.
Steps to reproduce
- Create a new instance using the All of Fabric 6 modpack version 1.5.x, or at least the mods, Minecraft and Fabric Loader versions listed in "Version Info".
- Create a new world with cheats enabled.
- Give yourself a Dank from Dank Storage (any tier), a Steam Mining Drill, and several stacks and a bit of any fuel item (in this case Lignite Coal Dust).
- Insert a partial stack in the fuel slot of the Steam Mining Drill.
- Insert the remaining items in a slot of the Dank.
- Open the Dank and try refilling the fuel slot using the stack of fuel in the Dank.
- Notice all but 64 is voided.
In the specific instance where I first encountered this bug, I lost a lot of Lignite Coal Dust and had to /give @s modern_industrialization:lignite_coal_dust 6400
a few times to recover most of it.