mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-07-26 21:16:23 +09:00
.
This commit is contained in:
@@ -8,7 +8,7 @@ do
|
||||
chest_filter[q_name] = {}
|
||||
|
||||
for _, i in pairs(prototypes.item) do
|
||||
if not i.hidden and not (i.subgroup and i.subgroup == 'parameters') then
|
||||
if not i.hidden and not (i.subgroup and (i.subgroup == 'parameters' or i.subgroup == 'spawnables')) then
|
||||
j = j + 1
|
||||
table.insert(chest_filter[q_name], {index = j, name = i.name, quality = q_name, mode = 'exactly', count = i.stack_size})
|
||||
end
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
if settings.startup['PHI-CT'].value then
|
||||
if data.raw['infinity-container']['super-infinity-chest'] then
|
||||
local sc = 2
|
||||
|
||||
for c in pairs(defines.prototypes.item) do
|
||||
sc = sc + table_size(data.raw[c] or {})
|
||||
end
|
||||
|
||||
data.raw['infinity-container']['super-infinity-chest'].inventory_size = sc
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user