mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	mcMMO will no longer put items into your hands
This commit is contained in:
		@@ -20,6 +20,7 @@ Version 2.1.2
 | 
				
			|||||||
    (Skills) Fixed a bug where Trap percentages were added to Fishing even though they no longer exist
 | 
					    (Skills) Fixed a bug where Trap percentages were added to Fishing even though they no longer exist
 | 
				
			||||||
    (Skills) Magic Hunter now uses a rank system
 | 
					    (Skills) Magic Hunter now uses a rank system
 | 
				
			||||||
    (Skills) Fixed a bug where Magic Hunter would work without treasure hunter
 | 
					    (Skills) Fixed a bug where Magic Hunter would work without treasure hunter
 | 
				
			||||||
 | 
					    (Skills) As long are you are empty handed mcMMO will no longer put items into your hands
 | 
				
			||||||
    (Experience) Wood blocks now give XP and are affected by Tree Feller (6 sided bark blocks)
 | 
					    (Experience) Wood blocks now give XP and are affected by Tree Feller (6 sided bark blocks)
 | 
				
			||||||
    (API) Moved XPGainReason from skills to experience package
 | 
					    (API) Moved XPGainReason from skills to experience package
 | 
				
			||||||
    (API) Added XpGainSource for tracking sources of XP
 | 
					    (API) Added XpGainSource for tracking sources of XP
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -390,7 +390,7 @@ public class PlayerListener implements Listener {
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ((mcMMOPlayer.isUsingUnarmed() && ItemUtils.isSharable(dropStack) && !Config.getInstance().getUnarmedItemsAsUnarmed()) || mcMMOPlayer.getAbilityMode(SuperAbilityType.BERSERK)) {
 | 
					        if (player.getInventory().getItemInMainHand().getType() == Material.AIR) {
 | 
				
			||||||
            boolean pickupSuccess = Unarmed.handleItemPickup(player.getInventory(), drop);
 | 
					            boolean pickupSuccess = Unarmed.handleItemPickup(player.getInventory(), drop);
 | 
				
			||||||
            boolean cancel = Config.getInstance().getUnarmedItemPickupDisabled() || pickupSuccess;
 | 
					            boolean cancel = Config.getInstance().getUnarmedItemPickupDisabled() || pickupSuccess;
 | 
				
			||||||
            event.setCancelled(cancel);
 | 
					            event.setCancelled(cancel);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user