diff options
Diffstat (limited to 'script-beta/vm/eachField.lua')
-rw-r--r-- | script-beta/vm/eachField.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/script-beta/vm/eachField.lua b/script-beta/vm/eachField.lua index d6ef315b..b60a882a 100644 --- a/script-beta/vm/eachField.lua +++ b/script-beta/vm/eachField.lua @@ -148,6 +148,16 @@ local function eachField(source, callback) elseif src.type == 'table' then ofTabel(src, callback) end + local lib = library.object[src.type] + if lib then + for k, v in pairs(lib.child) do + callback { + source = v, + key = 's|' .. k, + mode = 'value', + } + end + end end) end |