1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00

Merge pull request #474 from plague006/fix/walkabout

Fix walkabout case of player with no character
This commit is contained in:
Lynn 2018-11-28 13:13:55 +01:00 committed by GitHub
commit 67ce1c301f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ local function walkabout(cmd)
end
local player = game.players[player_name]
if player == nil or not player.valid or global.walking[player.index] then
if not player or not player.character or global.walking[player.index] then
Game.player_print(player_name .. ' could not go on a walkabout.')
return
end