diff options
Diffstat (limited to 'server/src/emmy/class.lua')
-rw-r--r-- | server/src/emmy/class.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/emmy/class.lua b/server/src/emmy/class.lua index fe67cf40..84854fc5 100644 --- a/server/src/emmy/class.lua +++ b/server/src/emmy/class.lua @@ -1,5 +1,6 @@ local listMgr = require 'vm.list' +---@class EmmyClass local mt = {} mt.__index = mt mt.type = 'emmy.class' @@ -26,7 +27,7 @@ end function mt:eachChild(callback) self._manager:eachClass(self.name, function (obj) - if obj.type == 'emmy.type' then + if obj.type == 'emmy.typeUnit' then callback(obj) end end) |