When Maraxsis' submarine unloads its cargo by an inserter connected to the platform, click the inserter will causing the game to crash.
After my troubleshooting, it was determined that the type of the inventory was not "LuaInventory", but "INVAILD LuaInventory".
Then I try to fix this (only add inventory.valid check):
control.lua
local function add_inventory_items(table, inventory)
if inventory and inventory.valid then
for _, item in pairs(inventory.get_contents()) do
fh_util.add_item_to_table(table, item)
end
end
end
Right now it works. It just stops the crash, and it would be great if you could read the inventory correctly. Thank you.