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:
parent
f2fbd45374
commit
8a9da5eaad
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user