1
0
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:
Matthew Heguy 2018-11-27 18:23:40 -05:00
parent 6b589fb8f6
commit 20dc540d79

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