From 1c1be8a7c13cb664551503b88516c75b189aed87 Mon Sep 17 00:00:00 2001 From: Thomas--S Date: Sat, 27 Jan 2018 17:40:42 +0100 Subject: Update the entities as soon as mapblock is loaded Useful e.g. after /clearobjects Introduces the group `display_lib_node` --- steles/nodes.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'steles') diff --git a/steles/nodes.lua b/steles/nodes.lua index 7bad5ae..80995c2 100644 --- a/steles/nodes.lua +++ b/steles/nodes.lua @@ -26,6 +26,8 @@ display_lib.register_display_entity("steles:text") for i, material in ipairs(steles.materials) do local ndef = minetest.registered_nodes[material] + local groups = table.copy(ndef.groups) + groups.display_lib_node = 1 if ndef then local parts = material:split(":") @@ -44,7 +46,7 @@ for i, material in ipairs(steles.materials) do {-7/16, -0.5, -4/16, 7/16, -4/16, 4/16} } }, - groups = ndef.groups, + groups = groups, display_entities = { ["steles:text"] = { on_display_update = font_lib.on_display_update, -- cgit v1.2.3