Localize various unneeded global variables
This commit is contained in:
parent
a40dec6da9
commit
16bb9b8901
10 changed files with 30 additions and 28 deletions
|
@ -62,7 +62,7 @@ local function check_commands(commands, player_name)
|
|||
local cmddef = minetest.chatcommands[cmd]
|
||||
if not cmddef then
|
||||
-- Invalid chat command
|
||||
msg = "Error: The command “"..cmd.."” does not exist; your command block has not been changed. Use the “help” chat command for a list of available commands."
|
||||
local msg = "Error: The command “"..cmd.."” does not exist; your command block has not been changed. Use the “help” chat command for a list of available commands."
|
||||
if string.sub(cmd, 1, 1) == "/" then
|
||||
msg = msg .. " Hint: Try to remove the trailing slash."
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue