mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Update bookshelf on inventory move (#3039)
Otherwise the empty book slot icon does not get replaced
This commit is contained in:
		@@ -2555,6 +2555,9 @@ local default_bookshelf_def = {
 | 
			
		||||
	on_metadata_inventory_take = function(pos)
 | 
			
		||||
		update_bookshelf(pos)
 | 
			
		||||
	end,
 | 
			
		||||
	on_metadata_inventory_move = 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