From 6b657ceff6976441e7789a59c561d43924dc9082 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 5 Jan 2019 23:41:24 +0000 Subject: [PATCH] Fix linter --- .luacheckrc | 4 ++-- mods/ctf_team_base/chest.lua | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index c234c0e..d84dbad 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -14,7 +14,7 @@ ignore = {"631"} globals = { "crafting", "vector", "table", "minetest", "worldedit", "ctf", "ctf_flag", "ctf_colors", - "hudkit", "default", "treasurer", "ChatCmdBuilder", + "hudkit", "default", "treasurer", "ChatCmdBuilder", "chatplus", } read_globals = { @@ -27,7 +27,7 @@ read_globals = { "VoxelArea", "ItemStack", "Settings", "prometheus", "hb", - "awards", "chatplus", + "awards", -- Testing diff --git a/mods/ctf_team_base/chest.lua b/mods/ctf_team_base/chest.lua index 1706e03..ae33fb3 100644 --- a/mods/ctf_team_base/chest.lua +++ b/mods/ctf_team_base/chest.lua @@ -20,9 +20,7 @@ local function get_is_player_pro(pstat) end local colors = {"red", "blue"} -local chest_name_to_team = {} for _, chest_color in pairs(colors) do - chest_name_to_team["ctf_team_base:chest_" .. chest_color] = chest_color minetest.register_node("ctf_team_base:chest_" .. chest_color, { description = "Chest", tiles = {