From 03b8ad15e36c07b1212a90f36d1d19520994cff5 Mon Sep 17 00:00:00 2001 From: the-real-herowl Date: Fri, 2 Feb 2024 04:05:28 +0100 Subject: [PATCH] Privs for colorizing command and comment cleanup --- mods/ITEMS/mcl_armor/leather.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_armor/leather.lua b/mods/ITEMS/mcl_armor/leather.lua index 76e1bf6be..c2366166b 100644 --- a/mods/ITEMS/mcl_armor/leather.lua +++ b/mods/ITEMS/mcl_armor/leather.lua @@ -20,8 +20,6 @@ local colors = { { "white", "White", "mcl_dye:white", "#d1d7d8" }, } --- #608b03 from #495d20 - local function color_string_to_table(colorstring) return { r = tonumber(colorstring:sub(2,3), 16), -- 16 as second parameter allows hexadecimal @@ -186,6 +184,7 @@ minetest.register_on_craft(colorizing_crafting) minetest.register_chatcommand("color_leather", { params = "", description = "Colorize a piece of leather armor, or wash it", + privs = {debug = true}, func = function(name, param) local player = minetest.get_player_by_name(name) if player then