mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Reverted fix for issue where the player could be given stacks of 0 items as it causes other regressions
This commit is contained in:
parent
317b4e9b5c
commit
80cb2d9ba4
1 changed files with 1 additions and 1 deletions
|
|
@ -221,7 +221,7 @@ public class Container {
|
||||||
public boolean add(Item item, boolean fireListener, int preferredSlot) {
|
public boolean add(Item item, boolean fireListener, int preferredSlot) {
|
||||||
item = item.copy();
|
item = item.copy();
|
||||||
int maximum = getMaximumAdd(item);
|
int maximum = getMaximumAdd(item);
|
||||||
if (maximum == 0 || (item.getDefinition().isStackable() && item.getAmount() == 0)) {
|
if (maximum == 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (preferredSlot > -1 && items[preferredSlot] != null) {
|
if (preferredSlot > -1 && items[preferredSlot] != null) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue