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:
commit
67ce1c301f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user