Use LBM instead of ABM to restore sign text

This commit is contained in:
Carter Kolwey 2016-09-03 15:09:55 -05:00
parent cbe3c8a811
commit d85713cf63

View File

@ -936,11 +936,12 @@ signs_lib.register_fence_with_sign("default:fence_wood", "signs:sign_post")
-- restore signs' text after /clearobjects and the like -- restore signs' text after /clearobjects and the like
minetest.register_abm({ minetest.register_lbm({
nodenames = signs_lib.sign_node_list, nodenames = signs_lib.sign_node_list,
interval = 15, name = "signs_lib:restore_sign_text",
chance = 1, label = "Restore sign text",
action = function(pos, node, active_object_count, active_object_count_wider) run_at_every_load = true,
action = function(pos, node)
signs_lib.update_sign(pos) signs_lib.update_sign(pos)
end end
}) })