mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-11-06 09:09:26 +02:00
Use variable after checking it rather than before
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user