From 95c0e96da99bfffd38f0a940172c11191f488ffd Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 19 May 2022 02:32:17 +0100 Subject: [PATCH] core: fix luacheck errors --- worldeditadditions_core/core/register_command.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldeditadditions_core/core/register_command.lua b/worldeditadditions_core/core/register_command.lua index e481848..7e2f3b2 100644 --- a/worldeditadditions_core/core/register_command.lua +++ b/worldeditadditions_core/core/register_command.lua @@ -33,7 +33,7 @@ local function register_command(cmdname, options) log_error(cmdname, "The func option is not a function.") return false 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.") return false end @@ -57,7 +57,7 @@ local function register_command(cmdname, options) run_command(cmdname, options, player_name, paramtext) end }) - we_c.registered_commands[cmdname] = options + wea_c.registered_commands[cmdname] = options end return register_command