mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-19 00:45:27 +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
|
// 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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user