1
0
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:
Cooldude2606 2019-04-09 20:27:07 +01:00
parent b2b94e0975
commit 601f940b3f

View File

@ -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]