This commit is contained in:
2025-06-05 17:54:02 +09:00
parent 5c3e685552
commit a2c27678f2
2 changed files with 4 additions and 17 deletions

View File

@@ -243,14 +243,14 @@ if settings.startup['PHI-CT'].value or settings.startup['PHI-MI'].value or (sett
script.on_event(defines.events.script_raised_destroy, destroy_electric_pole, filter)
local function build_proxy_container(e)
local p = e.entity.surface.create_entity{name = 'phi-cl-proxy-container', position = {e.entity.position.x, e.entity.position.y}, force = 'neutral', quality = e.entity.quality.name}
local p = e.entity.surface.create_entity{name = 'proxy-container', position = {e.entity.position.x, e.entity.position.y}, force = 'neutral', quality = e.entity.quality.name}
p.destructible = false
p.proxy_target_entity = e.entity
p.proxy_target_inventory = defines.inventory.lab_input
end
local function destroy_proxy_container(e)
local p = e.entity.surface.find_entity({name = 'phi-cl-proxy-container', force = 'neutral', quality = e.entity.quality.name}, {e.entity.position.x, e.entity.position.y})
local p = e.entity.surface.find_entity({name = 'proxy-container', force = 'neutral', quality = e.entity.quality.name}, {e.entity.position.x, e.entity.position.y})
if p then
p.destroy()

View File

@@ -1664,22 +1664,9 @@ if settings.startup['PHI-CT'].value then
table.insert(data.raw.technology['turbo-transport-belt'].effects, {type = 'unlock-recipe', recipe = 'turbo-underground-belt-a'})
end
entity = table.deepcopy(data.raw['proxy-container']['proxy-container'])
entity.name = 'phi-cl-proxy-container'
entity.hidden = true
entity.hidden_in_factoriopedia = true
entity.minable.result = nil
entity.water_reflection = nil
entity.collision_box = {{-0.2, -0.2}, {0.2, 0.2}}
entity.selection_box = {{-0.5, -0.5}, {0.5, 0.5}}
entity.collision_mask = {colliding_with_tiles_only = true, layers = {}, not_colliding_with_itself = true}
-- entity.flags = {'hide-alt-info', 'no-copy-paste', 'not-blueprintable', 'not-deconstructable', 'not-flammable', 'not-on-map', 'not-selectable-in-game', 'placeable-off-grid', 'placeable-player'}
entity.flags = {'not-blueprintable', 'not-deconstructable', 'not-flammable', 'not-on-map', 'placeable-off-grid', 'placeable-player', 'no-automated-item-insertion', 'no-automated-item-removal'}
entity.draw_inventory_content = false
entity.next_upgrade = nil
entity.selection_priority = 51
entity.order = 'zz'
data:extend{{entity}}
data.raw['proxy-container']['proxy-container'].flags = {'not-blueprintable', 'not-deconstructable', 'not-flammable', 'not-on-map', 'placeable-off-grid', 'placeable-player', 'no-automated-item-insertion', 'no-automated-item-removal'}
data.raw['proxy-container']['proxy-container'].draw_inventory_content = false
for _, v in pairs(data.raw.fluid) do
if (not data.raw.recipe['pump-' .. v.name]) and v.subgroup == 'fluid' then