mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-11-20 13:53:12 +09:00
.
This commit is contained in:
1 parent
6466f04d0f
commit
882c398f7a
2 files changed
+29
-5
No files matched your search
@@ -1,5 +1,33 @@
|
||||
local main = {}
|
||||
|
||||
function main.open(player)
|
||||
if not player then
|
||||
return
|
||||
end
|
||||
|
||||
if not player.opened then
|
||||
return
|
||||
end
|
||||
|
||||
if not player.opened.valid then
|
||||
return
|
||||
end
|
||||
|
||||
if player.opened.type ~= 'proxy-container' then
|
||||
return
|
||||
end
|
||||
|
||||
if not player.opened.proxy_target_inventory then
|
||||
return
|
||||
end
|
||||
|
||||
if player.opened.proxy_target_inventory ~= defines.inventory.lab_input then
|
||||
return
|
||||
end
|
||||
|
||||
player.opened = nil
|
||||
end
|
||||
|
||||
function main.build(event)
|
||||
if event.entity.type ~= 'lab' then
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user