Skip to content

Commit

Permalink
add xcompat so more games can craft these (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsor4035 authored Aug 10, 2024
1 parent c8e02bc commit 6dc8829
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
read_globals = {
"minetest", "travelnet",
"minetest", "travelnet", "xcompat",
}
12 changes: 5 additions & 7 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
3 changes: 2 additions & 1 deletion mod.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name = fancy_travelnet
description = Adds travelnets with fancy textures
depends = travelnet
depends = travelnet, xcompat
optional_depends = moreores

0 comments on commit 6dc8829

Please sign in to comment.