1
0
mirror of https://github.com/pyrollo/display_modpack.git synced 2024-11-12 13:20:30 +01:00

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

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