Bob's Adjustable Inserters


Adds hotkeys and a GUI to adjust inserter pickup and drop locations.

Content
4 months ago
0.13 - 1.1
305K
Logistics

b [1.1.0] Unexpected on_gui_opened error

2 years ago
Error while running event bobinserters::on_gui_opened (ID 86)
__bobinserters__/control.lua:463: attempt to index field 'entity' (a nil value)
stack traceback:
    __bobinserters__/control.lua:463: in function <__bobinserters__/control.lua:459>

If a scenario or earlier mod destroys an entity during on_gui_opened, the next mods to listen to the event will not get an entity (the entity is an optional parameter, so the event still propagates... despite no entity and a nil player.opened). Kinda dumb but it is what it is.

I encountered the bug while playing the Comfy scenario "Expanse" and triggered the bug in a mod of mine (I checked the gui type and assumed event.entity would always exist). Patched mine and yours came up :X

KiwiHawk β˜†
2 years ago

Thanks for reporting this. I'll get it fixed for the next version.

New response