From 4f1004472c3a6fc433cc5d72652c6d8728cbd589 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Sun, 15 Feb 2015 22:03:30 -0500 Subject: [PATCH] Possibly fix berserk bug --- .../java/com/gmail/nossr50/skills/unarmed/Unarmed.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/unarmed/Unarmed.java b/src/main/java/com/gmail/nossr50/skills/unarmed/Unarmed.java index 29d637fcd..bba1dfedd 100644 --- a/src/main/java/com/gmail/nossr50/skills/unarmed/Unarmed.java +++ b/src/main/java/com/gmail/nossr50/skills/unarmed/Unarmed.java @@ -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();