Add back registration LBMs, disabled by default.

This commit is contained in:
upsilon 2017-04-19 10:36:33 +02:00
parent 8051880395
commit b9654cca02
No known key found for this signature in database
GPG Key ID: A80DAE1F266E1C3C
3 changed files with 37 additions and 0 deletions

View File

@ -109,3 +109,12 @@ minetest.register_node("moremesecons_teleporter:teleporter", {
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

View File

@ -232,3 +232,19 @@ minetest.register_craft({
{"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

View File

@ -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
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 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
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