From 73ceb1b6dd47227bccf5560d2bf69dda943b6f86 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Sat, 9 May 2026 00:28:24 +0900 Subject: [PATCH] . --- PHI-CL/control/cargo-landing.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PHI-CL/control/cargo-landing.lua b/PHI-CL/control/cargo-landing.lua index 9a179d9..a7a62ce 100644 --- a/PHI-CL/control/cargo-landing.lua +++ b/PHI-CL/control/cargo-landing.lua @@ -23,6 +23,7 @@ function main.build(event) if event.entity.name ~= 'cargo-landing-pad' then return end + if not prototypes.entity['proxy-cargo-landing-chest'] then return 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'} + if not ep then + return + end + for _, v in pairs(ep) do v.proxy_target_entity = ec[1] v.proxy_target_inventory = defines.inventory.cargo_landing_pad_main