mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-10-27 05:45:21 +01:00 
			
		
		
		
	Update bookshelf infotext on put and take inv actions
This commit is contained in:
		
				
					committed by
					
						 Lars Müller
						Lars Müller
					
				
			
			
				
	
			
			
			
						parent
						
							16b6bdde0a
						
					
				
				
					commit
					cd6ea53a52
				
			| @@ -2549,6 +2549,12 @@ local default_bookshelf_def = { | ||||
| 		end | ||||
| 		return 0 | ||||
| 	end, | ||||
| 	on_metadata_inventory_put = function(pos) | ||||
| 		update_bookshelf(pos) | ||||
| 	end, | ||||
| 	on_metadata_inventory_take = function(pos) | ||||
| 		update_bookshelf(pos) | ||||
| 	end, | ||||
| 	on_blast = function(pos) | ||||
| 		local drops = {} | ||||
| 		default.get_inventory_drops(pos, "books", drops) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user