summaryrefslogtreecommitdiff
path: root/server/src/vm/emmy.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/vm/emmy.lua')
-rw-r--r--server/src/vm/emmy.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/vm/emmy.lua b/server/src/vm/emmy.lua
index 22f72ae6..c542cf4b 100644
--- a/server/src/vm/emmy.lua
+++ b/server/src/vm/emmy.lua
@@ -33,6 +33,7 @@ function mt:getEmmy()
end
function mt:doEmmyClass(action)
+ ---@type emmyMgr
local emmyMgr = self.emmyMgr
self:instantSource(action)
local class = emmyMgr:addClass(action)
@@ -49,9 +50,10 @@ function mt:doEmmyClass(action)
end
function mt:doEmmyType(action)
+ ---@type emmyMgr
local emmyMgr = self.emmyMgr
self:instantSource(action)
- local type = emmyMgr:createType(action)
+ local type = emmyMgr:addType(action)
self._emmy = type
action:set('emmy.type', type)
for _, obj in ipairs(action) do