Skip to content

Commit

Permalink
Fixed full inventory issue
Browse files Browse the repository at this point in the history
When logging in with an overflowing inventory, you could not pick up items until relogging with a non-overflowing inventory.
  • Loading branch information
neon-dev committed Nov 14, 2024
1 parent 39e1fcf commit 133c4ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,8 @@ public int getLimit() {
return limit;
}

public boolean setLimit(int limit) {
if (getCubeItems().size() > limit) {
return false;
}

public void setLimit(int limit) {
this.limit = limit;
return true;
}

public int getRowLength() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ public int getFreeSlots() {
}

@Override
public boolean setLimit(int limit) {
return storage.setLimit(limit);
public void setLimit(int limit) {
storage.setLimit(limit);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,8 @@ public int getFreeSlots() {
return this.itemStorage.getFreeSlots();
}

public boolean setLimit(int limit) {
return this.itemStorage.setLimit(limit);
public void setLimit(int limit) {
itemStorage.setLimit(limit);
}

@Override
Expand Down

0 comments on commit 133c4ba

Please sign in to comment.