mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-11-11 21:34:52 +09:00
.
This commit is contained in:
1 parent
a7f8915767
commit
838b01cf81
1 file changed
+6
-2
+6
-2
@@ -30,11 +30,15 @@ local function gui_create(player)
|
||||
end
|
||||
|
||||
local function gui_update(player, entity)
|
||||
if not entity.valid then
|
||||
if not entity.valid or not entity.type then
|
||||
return
|
||||
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
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user