Apply suggestions from code review
This commit is contained in:
parent
01fc89df62
commit
05c082cb0a
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 {
|
||||||
|
|
Loading…
Reference in New Issue