diff --git a/src/game-engine/world/items/item-container.ts b/src/game-engine/world/items/item-container.ts index c4fefbd3d..8596c717a 100644 --- a/src/game-engine/world/items/item-container.ts +++ b/src/game-engine/world/items/item-container.ts @@ -160,8 +160,8 @@ export class ItemContainer { return { item: newItem, slot: existingItemIndex }; } else { const newItemIndex = this.getFirstOpenSlot(); - if (newItemIndex === -1) { - // Not enough container space + if (newItemIndex === -1 || item.amount === 0) { + // Not enough container space, or the amount of item being added is 0. return null; }