Skip to content

Commit

Permalink
Remove zero stacks in removeAll (#23)
Browse files Browse the repository at this point in the history
Signed-off-by: Mako <[email protected]>
  • Loading branch information
Makonede authored Oct 27, 2023
1 parent 64ad5d6 commit e1a690d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/inventory/SlotsCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export class SlotsCore {

public removeAll(types: ItemType[]) {
inPlaceFilter(this.internalSlots, ref=>!types.includes(ref.get().item.type));
this.removeZeroStackExceptArrows();
}

public unequipAll(types: ItemType[]) {
Expand Down

0 comments on commit e1a690d

Please sign in to comment.