forked from mtcontrib/homedecor_modpack
		
	lighting: actually get meta before trying to use it :)
This commit is contained in:
		@@ -642,12 +642,13 @@ minetest.register_lbm({
 | 
			
		||||
			param2 = paletteidx
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		local meta = minetest.get_meta(pos)
 | 
			
		||||
 | 
			
		||||
		if string.find(name, "table_lamp") or string.find(name, "standing_lamp") then
 | 
			
		||||
			meta:set_string("palette", "ext")
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		minetest.set_node(pos, { name = new_node, param2 = param2 })
 | 
			
		||||
		local meta = minetest.get_meta(pos)
 | 
			
		||||
		meta:set_string("dye", "unifieddyes:"..color)
 | 
			
		||||
	end
 | 
			
		||||
})
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user