From a11cb94aaaa0617fb1c299661822be6bdf2297e9 Mon Sep 17 00:00:00 2001 From: Justin van der Leij Date: Wed, 4 Apr 2018 12:45:44 +0200 Subject: [PATCH] Fixed an issue where :setSystem would not acknowledge which system to work on --- fluid/instance.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluid/instance.lua b/fluid/instance.lua index 472480d..22ed786 100644 --- a/fluid/instance.lua +++ b/fluid/instance.lua @@ -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