Simplify code a bit

This commit is contained in:
NO11 2021-06-25 23:42:30 +02:00 committed by GitHub
parent f92aa945b7
commit b4228e02da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -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")