mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-11-24 13:53:12 +09:00
.
This commit is contained in:
1 parent
94a6e6e759
commit
ea468d758e
1 file changed
+1
-2
+1
-2
@@ -139,9 +139,8 @@ local function entity_build(event)
|
|||||||
|
|
||||||
if event.entity.type == 'cargo-landing-pad' and prototypes.entity['proxy-cargo-landing-pad'] then
|
if event.entity.type == 'cargo-landing-pad' and prototypes.entity['proxy-cargo-landing-pad'] then
|
||||||
local ec = game.surfaces[1].find_entities_filtered{type='cargo-landing-pad'}
|
local ec = game.surfaces[1].find_entities_filtered{type='cargo-landing-pad'}
|
||||||
local ec_count = #ec
|
|
||||||
|
|
||||||
if ec_count <= 1 then
|
if #ec <= 1 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user