mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Creative: Automatic item colorization for creative mode
This commit is contained in:
		@@ -55,8 +55,7 @@ function minetest.handle_node_drops(pos, drops, digger)
 | 
			
		||||
	local inv = digger:get_inventory()
 | 
			
		||||
	if inv then
 | 
			
		||||
		for _, item in ipairs(drops) do
 | 
			
		||||
			item = ItemStack(item):get_name()
 | 
			
		||||
			if not inv:contains_item("main", item) then
 | 
			
		||||
			if not inv:contains_item("main", item, true) then
 | 
			
		||||
				inv:add_item("main", item)
 | 
			
		||||
			end
 | 
			
		||||
		end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user