EarendelDevelopers / factorio-mods

This is a public repository for tracking issues with Earendel's factorio mods.
19 stars 3 forks source link

Investigate potential improvements to prevent navsat from picking up items #247

Open Wiwiweb opened 1 year ago

Wiwiweb commented 1 year ago

Right now when navsat picks up an item we detect it in on_player_cursor_stack_changed and then try to drop it back in RemoteView.drop_stack.

RemoteView.drop_stack uses entity.insert(stack), which can only put things down in input inventories.

Maybe there's a way to hard-set the hard-set the "output" inventory of entities instead. We can't tell which slot of the building the item came from, but usually those are filtered to a single item type only so it should be accurate for all but loop recipes.