forked from minetest-mods/MoreMesecons
Add back registration LBMs, disabled by default.
This commit is contained in:
parent
8051880395
commit
b9654cca02
@ -109,3 +109,12 @@ minetest.register_node("moremesecons_teleporter:teleporter", {
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if minetest.setting_getbool("moremesecons_teleporter.enable_lbm") then
|
||||||
|
minetest.register_lbm({
|
||||||
|
name = "moremesecons_teleporter:add_teleporter",
|
||||||
|
nodenames = {"moremesecons_teleporter:teleporter"},
|
||||||
|
run_at_every_load = true,
|
||||||
|
action = register
|
||||||
|
})
|
||||||
|
end
|
||||||
|
@ -232,3 +232,19 @@ minetest.register_craft({
|
|||||||
{"group:mesecon_conductor_craftable", "", "group:mesecon_conductor_craftable"},
|
{"group:mesecon_conductor_craftable", "", "group:mesecon_conductor_craftable"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if minetest.setting_getbool("moremesecons_wireless.enable_lbm") then
|
||||||
|
minetest.register_lbm({
|
||||||
|
name = "moremesecons_wireless:add_jammer",
|
||||||
|
nodenames = {"moremesecons_wireless:jammer_on"},
|
||||||
|
run_at_every_load = true,
|
||||||
|
action = add_jammer
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_lbm({
|
||||||
|
name = "moremesecons_wireless:add_wireless",
|
||||||
|
nodenames = {"moremesecons_wireless:wireless"},
|
||||||
|
run_at_every_load = true,
|
||||||
|
action = register_RID
|
||||||
|
})
|
||||||
|
end
|
||||||
|
@ -44,8 +44,20 @@ moremesecons_teleporter.max_t2t_distance (Maximum Teleporter To Teleporter dista
|
|||||||
# Any value less than or equal to 0 will be set to 1
|
# Any value less than or equal to 0 will be set to 1
|
||||||
moremesecons_teleporter.max_p2t_distance (Maximum Player To Teleporter distance) float 25
|
moremesecons_teleporter.max_p2t_distance (Maximum Player To Teleporter distance) float 25
|
||||||
|
|
||||||
|
# Whether to enable the registration LBM.
|
||||||
|
# The registration LBM will recover a teleporter network if the moremesecons_teleporter
|
||||||
|
# mod storage has been removed, and will create that mod storage after an update
|
||||||
|
# from an older version which did not use it.
|
||||||
|
moremesecons_teleporter.enable_lbm (Enable Registration LBM) bool false
|
||||||
|
|
||||||
[Wireless]
|
[Wireless]
|
||||||
|
|
||||||
# Wireless Jammer action range
|
# Wireless Jammer action range
|
||||||
# Any value less than or equal to 0 will be changed to 1 and a NaN value will be changed to the default value
|
# Any value less than or equal to 0 will be changed to 1 and a NaN value will be changed to the default value
|
||||||
moremesecons_wireless.jammer_max_distance (Wireless Jammer action range) float 15
|
moremesecons_wireless.jammer_max_distance (Wireless Jammer action range) float 15
|
||||||
|
|
||||||
|
# Whether to enable the registration LBM.
|
||||||
|
# The registration LBM will recover a wireless network if the moremesecons_wireless
|
||||||
|
# mod storage has been removed, and will create that mod storage after an update
|
||||||
|
# from an older version which did not use it.
|
||||||
|
moremesecons_wireless.enable_lbm (Enable Registration LBM) bool false
|
||||||
|
Loading…
Reference in New Issue
Block a user