Skip to content

Commit

Permalink
Fixed not being able to send multiple nonstackable items
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Oct 12, 2023
1 parent 5515223 commit ec22a59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
itemsToAdd.update(items => {
const existingItem = items.find(i => i.data._id === itemData._id || (i.data.name === itemData.name && i.data.type === itemData.type))
if (existingItem) {
if (existingItem && existingItem.canStack) {
existingItem.quantity++;
} else {
items.push({
Expand Down

0 comments on commit ec22a59

Please sign in to comment.