mirror of
https://github.com/rayaman/multi.git
synced 2026-09-05 07:27:35 -04:00
Fixed a bug in the trigger module
It would return 2 self references upon connection instead of 1
This commit is contained in:
+2
-2
@@ -4,7 +4,7 @@ function multi:newTrigger(func)
|
|||||||
c.Type='trigger'
|
c.Type='trigger'
|
||||||
c.trigfunc=func or function() end
|
c.trigfunc=func or function() end
|
||||||
function c:Fire(...)
|
function c:Fire(...)
|
||||||
self:trigfunc(self,...)
|
self:trigfunc(...)
|
||||||
end
|
end
|
||||||
function c:tofile(path)
|
function c:tofile(path)
|
||||||
local m=bin.new()
|
local m=bin.new()
|
||||||
@@ -14,4 +14,4 @@ function multi:newTrigger(func)
|
|||||||
end
|
end
|
||||||
self:create(c)
|
self:create(c)
|
||||||
return c
|
return c
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user