forked from mtcontrib/plantlife_modpack
Just run the conversion LBM on every load
it won't take any appreciable CPU anyway if there's nothing to do. Minetest seems to not new (or newly-renamed) LBMs when it should, when it's set to only run once. Also covers cases where a crash could prevent mapblocks being checked later.
This commit is contained in:
parent
9ed4771515
commit
bfd08f01c8
@ -410,9 +410,9 @@ local fdirtowall = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
minetest.register_lbm({
|
minetest.register_lbm({
|
||||||
name = "trunks:convert_moss_wallmounted_2",
|
name = "trunks:convert_moss_wallmounted",
|
||||||
label = "Convert moss to wallmounted mode",
|
label = "Convert moss to wallmounted mode",
|
||||||
run_at_every_load = false,
|
run_at_every_load = true,
|
||||||
nodenames = {"trunks:moss", "trunks:moss_fungus"},
|
nodenames = {"trunks:moss", "trunks:moss_fungus"},
|
||||||
action = function(pos, node)
|
action = function(pos, node)
|
||||||
local basedir = math.floor(node.param2 / 4)
|
local basedir = math.floor(node.param2 / 4)
|
||||||
|
Loading…
Reference in New Issue
Block a user