Possibly fix berserk bug

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

View File

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