mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-04 13:03:59 +01:00
EventEmitter: fix luacheck error
This commit is contained in:
parent
757f6de3b5
commit
6d03a5ca2c
@ -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.
|
-- @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)
|
function EventEmitter.emit(this, event_name, args)
|
||||||
if this.debug then
|
if this.debug then
|
||||||
listeners = 0
|
local listeners = 0
|
||||||
if this.events[event_name] ~= nil then listeners = #this.events[event_name] end
|
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))
|
print("DEBUG:EventEmitter emit", event_name, "listeners", listeners, "args", wea_c.inspect(args))
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user