mirror of
https://github.com/sr229/metastruct-experiments.git
synced 2024-09-20 06:30:36 +00:00
omit chips with nil owners too
This commit is contained in:
parent
75dd0bab43
commit
97fa187f65
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,9 @@ function getRunningChips()
|
|||
-- do not include empty objects
|
||||
if v == {} then continue end
|
||||
|
||||
-- do not include objects with no owner
|
||||
if not v:getOwner() then continue end
|
||||
|
||||
-- check if entry already exists
|
||||
if itExists(serverMetadata.runningChips, v) then
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue