From 67f32680b57cb805ade48d6871d18fb1507aff09 Mon Sep 17 00:00:00 2001 From: Justin van der Leij Date: Wed, 4 Apr 2018 12:38:18 +0200 Subject: [PATCH] Fixed an issue where :setSystem did not acknowledge which system it was setting --- fluid/instance.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fluid/instance.lua b/fluid/instance.lua index a234fe6..191bdf8 100644 --- a/fluid/instance.lua +++ b/fluid/instance.lua @@ -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