mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Hack around nms bug
This commit is contained in:
parent
d1341b0be0
commit
f37a7d759a
@ -79,11 +79,15 @@ public class Unarmed {
|
||||
|
||||
nextSlot++;
|
||||
}
|
||||
} else if (firstEmpty != -1) {
|
||||
dropStack.setAmount(dropAmount);
|
||||
inventory.setItem(firstEmpty, dropStack);
|
||||
return true;
|
||||
} else {
|
||||
// This should never happen as event contract states that the amount on the stack is equal to the amount they can actually pick up
|
||||
return true;
|
||||
}
|
||||
|
||||
dropStack.setAmount(dropAmount); // Even when only partially finished we need to prevent dupes
|
||||
drop.setItemStack(dropStack);
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user