LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function '__index'
__Ultracube__/scripts/cube_search.lua:302: in function 'cube_search_inventories'
__Ultracube__/scripts/cube_search.lua:499: in function 'cube_search_local'
__Ultracube__/scripts/cube_search.lua:850: in function 'update'
__Ultracube__/scripts/cube_fx.lua:286: in function 'tick'
__Ultracube__/control.lua:265: in function <__Ultracube__/control.lua:264>
Proposed fix on line 302:
if e.valid then
local inventory = e.get_inventory(defines.inventory.chest)
if inventory and check_inventory(e, inventory) then return true end
end