diff --git a/.luacheckrc b/.luacheckrc index 46891ce..5d04a52 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -1,3 +1,3 @@ read_globals = { - "minetest", "travelnet", + "minetest", "travelnet", "xcompat", } \ No newline at end of file diff --git a/init.lua b/init.lua index 9813401..2e86a11 100644 --- a/init.lua +++ b/init.lua @@ -48,13 +48,11 @@ minetest.override_item("fancy_travelnet:undercore", { inventory_image = "fancy_travelnet_undercore_inv.png", }) -if minetest.get_modpath("default") then - minetest.register_craft({ - type = "shapeless", - output = "fancy_travelnet:fancy_travelnet", - recipe = {"group:travelnet", "default:gold_ingot"} - }) -end +minetest.register_craft({ + type = "shapeless", + output = "fancy_travelnet:fancy_travelnet", + recipe = {"group:travelnet", xcompat.materials.gold_ingot} +}) if minetest.get_modpath("moreores") then minetest.register_craft({ diff --git a/mod.conf b/mod.conf index 9841617..e2e24d9 100644 --- a/mod.conf +++ b/mod.conf @@ -1,3 +1,4 @@ name = fancy_travelnet description = Adds travelnets with fancy textures -depends = travelnet +depends = travelnet, xcompat +optional_depends = moreores