1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-07-05 07:04:44 +02:00

Possibly fix berserk bug

This commit is contained in:
t00thpick1
2015-02-15 22:03:30 -05:00
parent 7aee829b94
commit 4f1004472c

@ -71,7 +71,14 @@ public class Unarmed {
} }
// Inventory is full - cancel the item pickup // Inventory is full - cancel the item pickup
if (dropStack.getAmount() == dropAmount) {
return false; return false;
} else {
drop.remove();
dropStack.setAmount(dropAmount);
((Item) drop.getWorld().dropItem(drop.getLocation(), dropStack)).setPickupDelay(0);
return true;
}
} }
else if (firstEmpty != -1) { else if (firstEmpty != -1) {
drop.remove(); drop.remove();