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.
master
Vanessa Dannenberg 2021-06-23 21:09:48 -04:00
parent 9ed4771515
commit bfd08f01c8
1 changed files with 2 additions and 2 deletions

View File

@ -410,9 +410,9 @@ local fdirtowall = {
}
minetest.register_lbm({
name = "trunks:convert_moss_wallmounted_2",
name = "trunks:convert_moss_wallmounted",
label = "Convert moss to wallmounted mode",
run_at_every_load = false,
run_at_every_load = true,
nodenames = {"trunks:moss", "trunks:moss_fungus"},
action = function(pos, node)
local basedir = math.floor(node.param2 / 4)