mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-04 00:15:45 +02:00
Allow "mining" of underground pipes at Tarball world.
This commit is contained in:
parent
d57a342d06
commit
9463b08afd
@ -176,14 +176,14 @@ Public.tarball = {
|
|||||||
local entity = event.created_entity
|
local entity = event.created_entity
|
||||||
if not entity.valid then return end
|
if not entity.valid then return end
|
||||||
if entity.surface.index ~= 1 then return end
|
if entity.surface.index ~= 1 then return end
|
||||||
if entity.type == 'entity-ghost' or entity.type == 'tile-ghost' or entity.type == 'container' or entity.type == 'wall' or entity.type == 'gate' or entity.type == 'pipe' then return end
|
if entity.type == 'entity-ghost' or entity.type == 'tile-ghost' or entity.type == 'container' or entity.type == 'wall' or entity.type == 'gate' or entity.type == 'pipe' or entity.type == 'pipe-to-ground' then return end
|
||||||
entity.minable = false
|
entity.minable = false
|
||||||
end,
|
end,
|
||||||
on_built_entity = function(event)
|
on_built_entity = function(event)
|
||||||
local entity = event.created_entity
|
local entity = event.created_entity
|
||||||
if not entity.valid then return end
|
if not entity.valid then return end
|
||||||
if entity.surface.index ~= 1 then return end
|
if entity.surface.index ~= 1 then return end
|
||||||
if entity.type == 'entity-ghost' or entity.type == 'tile-ghost' or entity.type == 'container' or entity.type == 'wall' or entity.type == 'gate' or entity.type == 'pipe' then return end
|
if entity.type == 'entity-ghost' or entity.type == 'tile-ghost' or entity.type == 'container' or entity.type == 'wall' or entity.type == 'gate' or entity.type == 'pipe' or entity.type == 'pipe-to-ground' then return end
|
||||||
entity.minable = false
|
entity.minable = false
|
||||||
end,
|
end,
|
||||||
on_chunk_generated = function(event, journey)
|
on_chunk_generated = function(event, journey)
|
||||||
|
Loading…
Reference in New Issue
Block a user