1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-18 03:21:47 +02:00

Use variable after checking it rather than before

This commit is contained in:
Matthew Heguy 2018-11-19 13:35:21 -05:00
parent f2fbd45374
commit 8a9da5eaad

View File

@ -15,10 +15,10 @@ local custom_commands_return_player =
Token.register(
function(args)
local player = args.player
local index = player.index
if not player.valid then
return
end
local index = player.index
-- If walking is false it means they got cleaned by clean_on_join
if global.walking[index] == false then
return