mirror of
				https://github.com/minetest-mods/item_drop.git
				synced 2025-11-04 09:35:33 +01:00 
			
		
		
		
	Corrige crash à cause d'un mauvais appel de fonction
This commit is contained in:
		
							
								
								
									
										2
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								init.lua
									
									
									
									
									
								
							@@ -170,7 +170,7 @@ minetest.settings:get_bool("enable_item_pickup") ~= false then
 | 
				
			|||||||
			local item = ItemStack(ent.itemstring)
 | 
								local item = ItemStack(ent.itemstring)
 | 
				
			||||||
			if inv
 | 
								if inv
 | 
				
			||||||
			and inv:room_for_item("main", item)
 | 
								and inv:room_for_item("main", item)
 | 
				
			||||||
			and can_pickup(ent, player) then
 | 
								and item_drop.can_pickup(ent, player) then
 | 
				
			||||||
				collect_item(ent, object:get_pos(), player)
 | 
									collect_item(ent, object:get_pos(), player)
 | 
				
			||||||
			else
 | 
								else
 | 
				
			||||||
				-- the acceleration will be reset by the object's on_step
 | 
									-- the acceleration will be reset by the object's on_step
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user