Prevents requested items being instantly trashed or overflowing into new stacks by syncing auto trash to requests when players close their inventory.
Sync can be toggled by hotkey or shortcut.
Krastorio update changed gold to gold-ore. The first time I opened my inventory post-update, I was presented with this:
Error while running event TrashSync::on_gui_closed (ID 84)
Unknown item name: gold
stack traceback:
__TrashSync__/control.lua:10: in function <__TrashSync__/control.lua:2>
stack traceback:
[C]: in function '__newindex'
__TrashSync__/control.lua:10: in function <__TrashSync__/control.lua:2>
Next version checks stored trash slots for no longer existing item references and removes them.
I was hoping migration scripts would update stored item name references. Seems like removing such items is the best I can do.