You've already forked ComfyFactorio
mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-11-29 22:47:52 +02:00
Mtn: fix more bugs
This commit is contained in:
@@ -56,7 +56,7 @@ local function apply_logistic_network(player, saved_data)
|
||||
for i, slot in pairs(saved_data) do
|
||||
if slot and slot.name and check_if_item_exists(slot.name) then
|
||||
local item_stack = { min = slot.min, max = slot.max, value = { comparator = "=", name = slot.name, quality = "normal", type = slot.type or nil } }
|
||||
old_section.set_slot(i, item_stack)
|
||||
pcall(old_section.set_slot, i, item_stack)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -73,7 +73,7 @@ local function apply_logistic_network(player, saved_data)
|
||||
for i, slot in pairs(slots) do
|
||||
if slot and slot.name and check_if_item_exists(slot.name) then
|
||||
local item_stack = { min = slot.min, max = slot.max, value = { comparator = "=", name = slot.name, quality = "normal", type = slot.type or nil } }
|
||||
new_section.set_slot(i, item_stack)
|
||||
pcall(new_section.set_slot, i, item_stack)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user