diff options
author | Carter Kolwey <cheapiephp@gmail.com> | 2016-09-03 15:09:55 -0500 |
---|---|---|
committer | Carter Kolwey <cheapiephp@gmail.com> | 2016-09-03 15:09:55 -0500 |
commit | d85713cf630184aae4eb49d91bf8085cc438fb20 (patch) | |
tree | 6c33f89657e14ec5ec6607181a87f3667ac05aea | |
parent | cbe3c8a8110adc01a426d8679647cf33ad67ac00 (diff) | |
download | signs_lib-d85713cf630184aae4eb49d91bf8085cc438fb20.tar.gz signs_lib-d85713cf630184aae4eb49d91bf8085cc438fb20.tar.bz2 signs_lib-d85713cf630184aae4eb49d91bf8085cc438fb20.zip |
Use LBM instead of ABM to restore sign text
-rw-r--r-- | init.lua | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 }) |