Fixed an issue where :setSystem would not acknowledge which system to work on

This commit is contained in:
Justin van der Leij 2018-04-04 12:45:44 +02:00
parent 4e438137a3
commit a11cb94aaa

View file

@ -133,7 +133,7 @@ function Instance:setSystem(system, eventName, callback, enable)
for i = 1, #listeners do
local listener = listeners[i]
if listener.callback == callback then
if listener.system == system and listener.callback == callback then
listener.enabled = enable
break
end