Every time I switch to the underground view to place track, the game gives me this error and restarts:
Error while running event Maps::on_player_main_inventory_changed (ID 32)
Maps/control.lua:22: attempt to index local 'inventory' (a nil value)
stack traceback:
Maps/control.lua:22: in function <Maps/control.lua:19>