aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/events.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/events.lua')
-rw-r--r--core/events.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/events.lua b/core/events.lua
index 15c6f77c..eb0e5d0c 100644
--- a/core/events.lua
+++ b/core/events.lua
@@ -189,7 +189,7 @@ function emit(event, ...)
if not handlers then return end
for _, f in ipairs(handlers) do
local result = f(unpack{...})
- if result == true or result == false then return result end
+ if type(result) == 'boolean' then return result end
end
end