mcMMO will no longer put items into your hands

This commit is contained in:
nossr50
2019-01-27 22:46:45 -08:00
parent fbc7cbf389
commit 154b10209d
2 changed files with 2 additions and 1 deletions

View File

@ -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 cancel = Config.getInstance().getUnarmedItemPickupDisabled() || pickupSuccess;
event.setCancelled(cancel);