mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-05-12 21:08:43 +09:00
.
This commit is contained in:
@@ -23,6 +23,7 @@ function main.build(event)
|
|||||||
if event.entity.name ~= 'cargo-landing-pad' then
|
if event.entity.name ~= 'cargo-landing-pad' then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if not prototypes.entity['proxy-cargo-landing-chest'] then
|
if not prototypes.entity['proxy-cargo-landing-chest'] then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
@@ -35,6 +36,10 @@ function main.build(event)
|
|||||||
|
|
||||||
local ep = game.surfaces[event.entity.surface].find_entities_filtered{type='proxy-container', name='proxy-cargo-landing-chest'}
|
local ep = game.surfaces[event.entity.surface].find_entities_filtered{type='proxy-container', name='proxy-cargo-landing-chest'}
|
||||||
|
|
||||||
|
if not ep then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
for _, v in pairs(ep) do
|
for _, v in pairs(ep) do
|
||||||
v.proxy_target_entity = ec[1]
|
v.proxy_target_entity = ec[1]
|
||||||
v.proxy_target_inventory = defines.inventory.cargo_landing_pad_main
|
v.proxy_target_inventory = defines.inventory.cargo_landing_pad_main
|
||||||
|
|||||||
Reference in New Issue
Block a user