mirror of
				https://github.com/mt-mods/homedecor_modpack.git
				synced 2025-10-31 02:45:36 +01:00 
			
		
		
		
	Replace deprecated get_metadata() call (#75)
				
					
				
			This commit is contained in:
		| @@ -81,7 +81,7 @@ for _, c in ipairs(bookcolors) do | |||||||
| 				name = "homedecor:book_"..color, | 				name = "homedecor:book_"..color, | ||||||
| 				param2 = fdir, | 				param2 = fdir, | ||||||
| 			}) | 			}) | ||||||
| 			local text = itemstack:get_metadata() or "" | 			local text = itemstack:get_meta():get_string("") | ||||||
| 			local meta = minetest.get_meta(pos) | 			local meta = minetest.get_meta(pos) | ||||||
| 			local data = minetest.deserialize(text) or {} | 			local data = minetest.deserialize(text) or {} | ||||||
| 			if type(data) ~= "table" then | 			if type(data) ~= "table" then | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user