mirror of
				https://github.com/pyrollo/display_modpack.git
				synced 2025-11-04 07:55:31 +01:00 
			
		
		
		
	Fix ndef nill value in steles mod when technics not installed
This commit is contained in:
		@@ -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],
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user