diff --git a/server/events/shipStructure.js b/server/events/shipStructure.js index 853bf7d01..f84ab1c6d 100644 --- a/server/events/shipStructure.js +++ b/server/events/shipStructure.js @@ -261,6 +261,7 @@ App.on("updateInventoryMetadata", ({id, metadata}) => { }); App.on("updateCrewInventory", ({crewId, inventory, roomId}) => { inventory.forEach(e => { + if (e.count === 0) return; const inv = App.inventory.find(i => i.id === e.inventory); inv.moveToCrew(roomId, crewId, e.count); });