mirror of
https://github.com/pyrollo/display_modpack.git
synced 2024-08-20 04:34:05 +02:00
Fix ndef nill value in steles mod when technics not installed
This commit is contained in:
parent
d2fadaea7b
commit
2acccd7261
@ -26,11 +26,11 @@ display_lib.register_display_entity("steles:text")
|
|||||||
for i, material in ipairs(steles.materials) do
|
for i, material in ipairs(steles.materials) do
|
||||||
|
|
||||||
local ndef = minetest.registered_nodes[material]
|
local ndef = minetest.registered_nodes[material]
|
||||||
local groups = table.copy(ndef.groups)
|
|
||||||
groups.display_lib_node = 1
|
|
||||||
|
|
||||||
if ndef then
|
if ndef then
|
||||||
|
local groups = table.copy(ndef.groups)
|
||||||
local parts = material:split(":")
|
local parts = material:split(":")
|
||||||
|
groups.display_lib_node = 1
|
||||||
|
|
||||||
minetest.register_node("steles:"..parts[2].."_stele", {
|
minetest.register_node("steles:"..parts[2].."_stele", {
|
||||||
description = steles.materials_desc[i],
|
description = steles.materials_desc[i],
|
||||||
|
Loading…
Reference in New Issue
Block a user