mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-18 16:35:25 +01:00
Possibly fix berserk bug
This commit is contained in:
parent
7aee829b94
commit
4f1004472c
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user