1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-03 14:53:01 +02:00

Merge pull request #893 from Cooldude2606/develop

Fixed Game.get_player_from_any not working for indexs
This commit is contained in:
grilledham 2019-04-15 23:47:56 +01:00 committed by GitHub
commit f3d5ec9500
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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]