Temporarily removed unarmed item pickup until it gets fixed

This commit is contained in:
nossr50 2019-01-30 08:45:38 -08:00
parent e66ed3f3f1
commit 7e5a8bc659
3 changed files with 8 additions and 5 deletions

View File

@ -7,6 +7,9 @@ Key:
! Change
- Removal
Version 2.1.3
Temporarily removed the unarmed no-item pickup feature until its fixed
Version 2.1.2
(Compatibility) mcMMO now deals custom damage type for all damage sources to be more compatible with other plugins (such as anti-cheat)
(Perks) Fixed a bug where the Lucky perk wasn't adding to success

View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId>
<version>2.1.2</version>
<version>2.1.3-SNAPSHOT</version>
<name>mcMMO</name>
<url>https://github.com/mcMMO-Dev/mcMMO</url>
<scm>

View File

@ -393,16 +393,16 @@ public class PlayerListener implements Listener {
}
}
if (player.getInventory().getItemInMainHand().getType() == Material.AIR) {
/*if (player.getInventory().getItemInMainHand().getType() == Material.AIR) {
Unarmed.handleItemPickup(player, event);
/*boolean cancel = Config.getInstance().getUnarmedItemPickupDisabled() || pickupSuccess;
*//*boolean cancel = Config.getInstance().getUnarmedItemPickupDisabled() || pickupSuccess;
event.setCancelled(cancel);
if (pickupSuccess) {
return;
}*/
}
}*//*
}*/
}
}