aboutsummaryrefslogtreecommitdiff
path: root/steles
diff options
context:
space:
mode:
authorThomas--S <info@thomas-stangl.de>2018-01-27 17:40:42 +0100
committerThomas--S <info@thomas-stangl.de>2018-01-28 13:46:16 +0100
commit1c1be8a7c13cb664551503b88516c75b189aed87 (patch)
tree8163ba1896c9528683a10fa0288c9c60699034d8 /steles
parent78e3b852740c77b78e19b814e649f66b91dba673 (diff)
downloaddisplay_modpack-1c1be8a7c13cb664551503b88516c75b189aed87.tar.gz
display_modpack-1c1be8a7c13cb664551503b88516c75b189aed87.tar.bz2
display_modpack-1c1be8a7c13cb664551503b88516c75b189aed87.zip
Update the entities as soon as mapblock is loaded
Useful e.g. after /clearobjects Introduces the group `display_lib_node`
Diffstat (limited to 'steles')
-rw-r--r--steles/nodes.lua4
1 files changed, 3 insertions, 1 deletions
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,