mirror of
https://github.com/minetest-mods/moreores.git
synced 2025-07-01 15:40:32 +02:00
Apply suggestions from code review
This commit is contained in:
4
init.lua
4
init.lua
@ -45,8 +45,8 @@ end
|
|||||||
-- Returns the crafting recipe table for a given material and item.
|
-- Returns the crafting recipe table for a given material and item.
|
||||||
local function get_recipe(material, item)
|
local function get_recipe(material, item)
|
||||||
if is_mcl_core_present then
|
if is_mcl_core_present then
|
||||||
material = material:gsub("default:", "mcl_core:")
|
material = material:gsub("default:", "mcl_core:")
|
||||||
end
|
end
|
||||||
|
|
||||||
if item == "sword" then
|
if item == "sword" then
|
||||||
return {
|
return {
|
||||||
|
Reference in New Issue
Block a user