Storage Drawers

Storage Drawers

151M Downloads

[BUG][1.12.2] Item voiding on insert via ItemHandlerHelper.insertItemStacked

LAGIdiot opened this issue ยท 0 comments

commented

Describe the bug
Inserting items to Storage Drawer via ItemHandlerHelper.insertItemStacked may lead to voiding them. In situation in which Storage drawer is missing 1 item and 2 are inserted via ItemHandlerHelper.insertItemStacked (dry run) it will accept both even if it has place for 1. Reproducible by using GTCE machine auto output.

Full problem analysis in GregTechCE/GregTech#1221

Versions
Forge: 14.23.5.2847
GTCE: 1.10.0.546
Storage Drawers: 5.4.2

Expected behavior
ItemHandlerHelper.insertItemStacked will return correct size of stack which was not possible to insert.