From bfd08f01c8b41756f604c8bd71ccc1efeae1239d Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Wed, 23 Jun 2021 21:09:48 -0400 Subject: [PATCH] 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. --- trunks/nodes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunks/nodes.lua b/trunks/nodes.lua index 90e38d9..04d124f 100644 --- a/trunks/nodes.lua +++ b/trunks/nodes.lua @@ -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)