]> git.lizzy.rs Git - signs_lib.git/commitdiff
Use LBM instead of ABM to restore sign text
authorCarter Kolwey <cheapiephp@gmail.com>
Sat, 3 Sep 2016 20:09:55 +0000 (15:09 -0500)
committerCarter Kolwey <cheapiephp@gmail.com>
Sat, 3 Sep 2016 20:09:55 +0000 (15:09 -0500)
init.lua

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