mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-11-25 21:53:12 +09:00
.
This commit is contained in:
1 parent
c4a6b908b7
commit
94a6e6e759
1 file changed
+2
-6
+2
-6
@@ -145,14 +145,10 @@ local function entity_build(event)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local pos = event.entity.position
|
local p = game.surfaces[1].create_entity{name = 'proxy-cargo-landing-pad', position = {event.entity.position.x, event.entity.position.y}, force = 'neutral', quality = event.entity.quality.name}
|
||||||
local q = event.entity.quality.name
|
|
||||||
event.entity.destroy()
|
|
||||||
|
|
||||||
local p = game.surfaces[1].create_entity{name = 'proxy-cargo-landing-pad', position = {pos.x, pos.y}, force = 'neutral', quality = q}
|
|
||||||
p.proxy_target_entity = ec[1]
|
p.proxy_target_entity = ec[1]
|
||||||
p.proxy_target_inventory = defines.inventory.cargo_landing_pad_main
|
p.proxy_target_inventory = defines.inventory.cargo_landing_pad_main
|
||||||
|
event.entity.destroy()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user