[Bug] Item duplication if installed alongside mod that adds additional compaction levels
MattDahEpic opened this issue ยท 1 comments
When installed alongside a mod that adds compression levels greater than vanilla, breaking and re-placing a compacting drawer causes the item in the top of the drawer to end up on the bottom right with the count of the item originally on the bottom right.
Expected behaviour
Breaking and re-placing the compacting drawer retains the contents as it was placed before.
Actual behaviour
Breaking and replacing the compacting drawer returns a different type of item in each slot but with the same counts as previously.
Reproduction steps
- Place a compacting drawer and fill it with 81 iron nuggets (aka 9 ingots or 1 block).
- Break the compacting drawer with a pickaxe so it drops as an item containing its contents.
- Re-place compacting drawer
- Note that the compacting drawer now contains 81 iron blocks, 9 compressed iron blocks, and 1 double compressed iron block. The item in the top, most compressed, slot has shifted to the bottom right, least compressed, slot while maintaining the count of the item originall there (the iron nuggets).
- Break the compacting drawer with a pickaxe again.
- Place it again
- Note that the drawer now contains 81 double compressed iron blocks, 9 triple compressed iron blocks, and 1 quintuple compressed iron block. This process will continue until the item in the top slot no longer has a 3x3 compression recipe. The issue does not occur if the item does not compress further than 3 levels (nugget, ingot, block).
Additional info
Issue was discovered while playing All The Mods 7 version 0.3.1.
Minimal reproduction setup:
Minecraft 1.18.2
Forge 40.0.36
Functional Storage 0.11
AllTheCompressed 1.0.6-1.18.2-40.0.31