mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-26 09:03:01 +00:00
core: fix luacheck errors
This commit is contained in:
parent
b816133716
commit
95c0e96da9
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ local function register_command(cmdname, options)
|
||||||
log_error(cmdname, "The func option is not a function.")
|
log_error(cmdname, "The func option is not a function.")
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
if we_c.registered_commands[cmdname] and options.override ~= true then
|
if wea_c.registered_commands[cmdname] and options.override ~= true then
|
||||||
log_error(cmdname, "A WorldEditAdditions command with that name is registered, but the option override is not set to true.")
|
log_error(cmdname, "A WorldEditAdditions command with that name is registered, but the option override is not set to true.")
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
@ -57,7 +57,7 @@ local function register_command(cmdname, options)
|
||||||
run_command(cmdname, options, player_name, paramtext)
|
run_command(cmdname, options, player_name, paramtext)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
we_c.registered_commands[cmdname] = options
|
wea_c.registered_commands[cmdname] = options
|
||||||
end
|
end
|
||||||
|
|
||||||
return register_command
|
return register_command
|
||||||
|
|
Loading…
Reference in a new issue