mirror of
https://github.com/rayaman/multi.git
synced 2026-09-05 07:27:35 -04:00
Closer to getting things working...
This commit is contained in:
@@ -70,6 +70,8 @@ function multi:newSystemThreadedTable(name)
|
||||
return self
|
||||
end
|
||||
|
||||
c.__init = c.init
|
||||
|
||||
function c:Hold(opt)
|
||||
if opt.key then
|
||||
return thread.hold(function()
|
||||
|
||||
@@ -92,8 +92,8 @@ function INIT()
|
||||
repeat
|
||||
wait()
|
||||
until GLOBAL[name] ~= nil
|
||||
if type(GLOBAL[name].init) == "function" then
|
||||
return GLOBAL[name]:init()
|
||||
if type(GLOBAL[name].__init) == "function" then
|
||||
return GLOBAL[name]:__init()
|
||||
else
|
||||
return GLOBAL[name]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user