mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	Use dropItem instead of dropItemNaturally (#3644)
This could possibly eliminate a few issues.
This commit is contained in:
		@@ -157,7 +157,7 @@ public final class ShareHandler {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    private static void awardDrop(Player winningPlayer, ItemStack drop) {
 | 
					    private static void awardDrop(Player winningPlayer, ItemStack drop) {
 | 
				
			||||||
        if (winningPlayer.getInventory().addItem(drop).size() != 0) {
 | 
					        if (winningPlayer.getInventory().addItem(drop).size() != 0) {
 | 
				
			||||||
            winningPlayer.getWorld().dropItemNaturally(winningPlayer.getLocation(), drop);
 | 
					            winningPlayer.getWorld().dropItem(winningPlayer.getLocation(), drop);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        winningPlayer.updateInventory();
 | 
					        winningPlayer.updateInventory();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user