mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-06-27 05:46:22 +09:00
.
This commit is contained in:
+6
-2
@@ -30,11 +30,15 @@ local function gui_create(player)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function gui_update(player, entity)
|
local function gui_update(player, entity)
|
||||||
if not entity.valid then
|
if not entity.valid or not entity.type then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if entity.type and (entity.type ~= 'inserter' or (entity.type == 'entity-ghost' and entity.ghost_type ~= 'inserter')) then
|
if entity.type ~= 'inserter' then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
if entity.type == 'entity-ghost' and entity.ghost_type ~= 'inserter' then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user