From b4228e02daee918938f43c9ac8477a64ba20d0bc Mon Sep 17 00:00:00 2001 From: NO11 <68117246+NO411@users.noreply.github.com> Date: Fri, 25 Jun 2021 23:42:30 +0200 Subject: [PATCH] Simplify code a bit --- init.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index a4ff73d..9725249 100644 --- a/init.lua +++ b/init.lua @@ -1,4 +1,5 @@ -local function register_raw_ore(ore, description, n) +local function register_raw_ore(description, n) + local ore = description:lower() local n = n or "" local raw_ingot = "mcl_raw_ores:raw_"..ore local texture = "mcl_raw_ores_raw_"..ore @@ -45,8 +46,11 @@ local function register_raw_ore(ore, description, n) } }) end -register_raw_ore("iron", "Iron", "n") -register_raw_ore("gold", "Gold") +register_raw_ore("Iron", "n") +register_raw_ore("Gold") + + +