mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-18 23:03:13 +09:00
wrong table key
This commit is contained in:
1 parent
23649d7c50
commit
eeeda196ae
1 file changed
+4
-8
@@ -154,16 +154,12 @@ allowed_items["landfill"] = {
|
|||||||
--- @type ExpScenario_Vlayer.Data
|
--- @type ExpScenario_Vlayer.Data
|
||||||
local vlayer_data = {}
|
local vlayer_data = {}
|
||||||
|
|
||||||
--- @param surface_index number?
|
--- @param surface_index number
|
||||||
local function update_surface(surface_index)
|
local function update_surface(surface_index)
|
||||||
if vlayer_data[surface_index] then
|
if vlayer_data[surface_index] then return end
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
-- global surface will have its data point to the main surface
|
-- global surface will have its data point to the main surface
|
||||||
if config.global_surface then
|
if config.global_surface and vlayer_data[1] then return end
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
vlayer_data[surface_index] = {
|
vlayer_data[surface_index] = {
|
||||||
interfaces = {
|
interfaces = {
|
||||||
@@ -610,7 +606,7 @@ end
|
|||||||
--- Fill the requests of the output interfaces from storage
|
--- Fill the requests of the output interfaces from storage
|
||||||
local function handle_output_interfaces()
|
local function handle_output_interfaces()
|
||||||
for s_index, prop in pairs(vlayer_data) do
|
for s_index, prop in pairs(vlayer_data) do
|
||||||
local interfaces = prop.storage_output
|
local interfaces = prop.interfaces.storage_output
|
||||||
prune_interfaces(interfaces)
|
prune_interfaces(interfaces)
|
||||||
for _, interface in ipairs(interfaces) do
|
for _, interface in ipairs(interfaces) do
|
||||||
local inventory = assert(interface.get_inventory(defines.inventory.chest))
|
local inventory = assert(interface.get_inventory(defines.inventory.chest))
|
||||||
|
|||||||
Reference in new issue
Block a user