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 ! Change
- Removal - Removal
Version 2.1.3
Temporarily removed the unarmed no-item pickup feature until its fixed
Version 2.1.2 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) (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 (Perks) Fixed a bug where the Lucky perk wasn't adding to success

View File

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

View File

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