mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-30 04:30:58 +02:00
Fix case of player with no character
This commit is contained in:
parent
6b589fb8f6
commit
20dc540d79
@ -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…
x
Reference in New Issue
Block a user