I am also having this bug. I am beginning to suspect that it is once again my Miner mod that’s doing this.
The suspicion is because when the miner is levelled up enough to use a backpack, the backpack “reflects” the items the Miner has in his inventory, by reading the items, and creating duplicates of those items in the backpack’s own storage component. After the Miner drops or otherwise lets go of the item, the backpack deletes the copy it held onto. I know it does this, because I’ve never seen miners running around with a stuffed backpack that doesn’t empty itself. I’ve also checked on my “broken” save file (with over 900 items that do not appear in the world) whether the backpacks or the miners hold any references to the hidden items – they do not. But I wonder if maybe the cloned items automatically start belonging to the player, going into their town inventory, and then are never “cleared out” of it once the miner drops or no longer possesses these items? I’ll run a few tests with Microworld to see if my theory is correct that it’s the Miner causing this.
e: My hunch is correct. I spawned 3 miners and 100 rabbit jerkies that I had them load into a stockpile. After they were finished, there were now 198 jerkies. Researching why this is happening.
e2: I fixed the issue on my end by manually pulling up the miner owner’s town inventory, and force-deleting the “ghost” item from that inventory. It appears that
stonehearth:storage:add_item notifies the player inventory that the item is added, but
stonehearth:storage:remove_item does not notify the player inventory that the item was removed; this makes sense, since normally, removing an item from a storage inventory would not remove it from the town inventory.
@Kenndalizard, this issue will be fixed for you as soon as the Miner auto-updates from Steam, but you will need to start a new game. I appreciate your bug report and your patience with my code.