Final Touch

This commit is contained in:
Cooldude2606
2019-05-26 21:44:39 +01:00
parent e7353e331f
commit 77fc58c8a0
4 changed files with 72 additions and 25 deletions

View File

@@ -240,7 +240,10 @@ end
function LeftFrames._prototype:event_handler(action)
action = action or 'update'
return function(event)
local player = Game.get_player_by_index(event.player_index)
local player
if event.player_index then
player = Game.get_player_by_index(event.player_index)
end
self[action](self,player)
end
end