Register travelnet nodes as MVPS stoppers (#93)

This commit is contained in:
Niklp 2024-12-11 00:20:46 +01:00 committed by GitHub
parent 193773ba1d
commit e6c9a283be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 1 deletions

View File

@ -152,6 +152,10 @@ minetest.register_node("travelnet:elevator", {
end
})
if minetest.get_modpath("mesecons_mvps") then
mesecon.register_mvps_stopper("travelnet:elevator")
end
minetest.register_craft({
output = "travelnet:elevator",
recipe = travelnet.elevator_recipe,

View File

@ -83,6 +83,9 @@ minetest.register_node("travelnet:hidden_top", {
drop = "",
})
if minetest.get_modpath("mesecons_mvps") then
mesecon.register_mvps_stopper("travelnet:hidden_top")
end
if travelnet.travelnet_effect_enabled then
minetest.register_entity("travelnet:effect", {

View File

@ -1,4 +1,4 @@
name = travelnet
depends = xcompat
optional_depends = mesecons, mtt
optional_depends = mesecons, mesecons_mvps, mtt
description = Network of teleporter-boxes that allows easy travelling to other boxes on the same network.

View File

@ -127,4 +127,8 @@ function travelnet.register_travelnet_box(cfg)
recipe = { "group:travelnet", cfg.dye },
})
end
if minetest.get_modpath("mesecons_mvps") then
mesecon.register_mvps_stopper(cfg.nodename)
end
end