mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-02 12:24:11 -04:00
Fixed an issue where :setSystem did not acknowledge which system it was setting
This commit is contained in:
parent
358a455c8b
commit
67f32680b5
1 changed files with 2 additions and 2 deletions
|
@ -126,8 +126,8 @@ function Instance:setSystem(system, eventName, callback, enable)
|
|||
for i = 1, #listeners do
|
||||
local listener = listeners[i]
|
||||
|
||||
if listerner.callback == callback then
|
||||
listerner.enabled = enable
|
||||
if listener.system == system and listener.callback == callback then
|
||||
listener.enabled = enable
|
||||
break
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue