1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-11-06 09:09:26 +02:00

bug fixes

This commit is contained in:
grilledham
2018-06-18 23:29:28 +01:00
parent 3760833a96
commit f9bb6ca461
2 changed files with 12 additions and 1 deletions

View File

@@ -78,7 +78,11 @@ local custom_commands_return_player =
end
global.walking[player.index] = false
player.character.destroy()
local walkabout_character = player.character
if walkabout_character and walkabout_character.valid then
walkabout_character.destroy()
end
local character = args.character
if character ~= nil and character.valid then