aboutsummaryrefslogtreecommitdiff
path: root/steles
diff options
context:
space:
mode:
authorPierre-Yves Rollo <dev@pyrollo.com>2018-01-28 15:09:49 +0100
committerGitHub <noreply@github.com>2018-01-28 15:09:49 +0100
commitc7d13fca9e795b366dedcb4d65426510ff85dcdc (patch)
tree8163ba1896c9528683a10fa0288c9c60699034d8 /steles
parent78e3b852740c77b78e19b814e649f66b91dba673 (diff)
parent1c1be8a7c13cb664551503b88516c75b189aed87 (diff)
downloaddisplay_modpack-c7d13fca9e795b366dedcb4d65426510ff85dcdc.tar.gz
display_modpack-c7d13fca9e795b366dedcb4d65426510ff85dcdc.tar.bz2
display_modpack-c7d13fca9e795b366dedcb4d65426510ff85dcdc.zip
Merge pull request #9 from Thomas--S/lbm_update
Update the entities as soon as mapblock is loaded
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,