diff options
author | Pierre-Yves Rollo <dev@pyrollo.com> | 2018-02-02 22:44:58 +0100 |
---|---|---|
committer | Pierre-Yves Rollo <dev@pyrollo.com> | 2018-02-02 22:44:58 +0100 |
commit | 2acccd72610d240c115c17a63fe1d0b8a068406a (patch) | |
tree | bdda7ab88a8943f5e89d34614efedc17afb5d07c /steles | |
parent | d2fadaea7b8089086abe3e396a3942f765d63035 (diff) | |
download | display_modpack-2acccd72610d240c115c17a63fe1d0b8a068406a.tar.gz display_modpack-2acccd72610d240c115c17a63fe1d0b8a068406a.tar.bz2 display_modpack-2acccd72610d240c115c17a63fe1d0b8a068406a.zip |
Fix ndef nill value in steles mod when technics not installed
Diffstat (limited to 'steles')
-rw-r--r-- | steles/nodes.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/steles/nodes.lua b/steles/nodes.lua index 4eff56f..d2fb504 100644 --- a/steles/nodes.lua +++ b/steles/nodes.lua @@ -26,11 +26,11 @@ 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 groups = table.copy(ndef.groups) local parts = material:split(":") + groups.display_lib_node = 1 minetest.register_node("steles:"..parts[2].."_stele", { description = steles.materials_desc[i], |