mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-18 03:21:47 +02:00
Game.get_player_from_any not working for indexs
This commit is contained in:
parent
b2b94e0975
commit
601f940b3f
@ -50,7 +50,7 @@ end
|
||||
function Game.get_player_from_any(obj)
|
||||
local o_type = type(obj)
|
||||
local p
|
||||
if type == 'number' then
|
||||
if o_type == 'number' then
|
||||
p = Game.get_player_by_index(obj)
|
||||
elseif o_type == 'string' then
|
||||
p = game.players[obj]
|
||||
|
Loading…
x
Reference in New Issue
Block a user