mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 02:55:22 +09:00
.
This commit is contained in:
@@ -145,10 +145,11 @@ local function entity_build(event)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local e = event.entity
|
local pos = event.entity.position
|
||||||
|
local q = event.entity.quality.name
|
||||||
event.entity.destroy()
|
event.entity.destroy()
|
||||||
|
|
||||||
local p = e.surface.create_entity{name = 'proxy-cargo-landing-pad', position = {e.position.x, e.position.y}, force = 'neutral', quality = e.quality.name}
|
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user