Update main.lua

This commit is contained in:
2023-03-20 23:39:56 +09:00
parent 9c9af2b8ab
commit cbf82114cd

View File

@@ -207,14 +207,12 @@ data:extend({{
}})
for i=1, #ups_chests, 1 do
local chest_item
local chest_entity
local chest_item = table.deepcopy(data.raw['item'][ups_chests[i]])
local chest_entity = nil
if ups_chests[i] == 'steel-chest' then
chest_item = table.deepcopy(data.raw['item'][ups_chests[i]])
chest_entity = table.deepcopy(data.raw['container'][ups_chests[i]])
else
chest_item = table.deepcopy(data.raw['item'][ups_chests[i]])
chest_entity = table.deepcopy(data.raw['logistic-container'][ups_chests[i]])
end
@@ -229,7 +227,7 @@ for i=1, #ups_chests, 1 do
data:extend({{
type = 'recipe',
name = 'electric-boiler',
name = 'ups-' .. ups_chests[i],
energy_required = 2,
enabled = true,
ingredients = {{'steel-plate', 8}},