From 6d03a5ca2cde357655aab539ac810d7442817d86 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 28 Nov 2023 00:33:27 +0000 Subject: [PATCH] EventEmitter: fix luacheck error --- worldeditadditions_core/utils/EventEmitter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldeditadditions_core/utils/EventEmitter.lua b/worldeditadditions_core/utils/EventEmitter.lua index adbde5a..2a2f118 100644 --- a/worldeditadditions_core/utils/EventEmitter.lua +++ b/worldeditadditions_core/utils/EventEmitter.lua @@ -59,7 +59,7 @@ end -- @param args table|any The argument(s) to pass to listener functions. It is strongly advised you pass a table here. function EventEmitter.emit(this, event_name, args) if this.debug then - listeners = 0 + local listeners = 0 if this.events[event_name] ~= nil then listeners = #this.events[event_name] end print("DEBUG:EventEmitter emit", event_name, "listeners", listeners, "args", wea_c.inspect(args)) end