Finish system optimization

This commit is contained in:
Tjakka5 2020-01-04 10:47:45 +01:00
parent 424f27ed8a
commit 451b88cdea
3 changed files with 11 additions and 4 deletions

View file

@ -243,7 +243,7 @@ function World:emit(functionName, ...)
error("bad argument #1 to 'World:emit' (String expected, got "..type(functionName)..")")
end
local listeners = self.events[functionName]
local listeners = self.events[functionName]
if listeners then
for i = 1, #listeners do