Fix ndef nill value in steles mod when technics not installed

This commit is contained in:
Pierre-Yves Rollo 2018-02-02 22:44:58 +01:00
parent d2fadaea7b
commit 2acccd7261
1 changed files with 2 additions and 2 deletions

View File

@ -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],