Cargo give: the bay no longer holds a stack below one, so the give's positive-stack filter and its zero-stack test go

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-10-22 22:15:41 +02:00
commit fa5820f516
2 changed files with 3 additions and 4 deletions

View file

@ -110,7 +110,7 @@ public static class CargoTransfer
}
else if (bay.ItemsOfType.TryGetValue(order.Item.Data.Key, out var stacks))
{
var stack = stacks.OfType<SimpleCommodity>().FirstOrDefault(s => s.Quantity > 0);
var stack = stacks.OfType<SimpleCommodity>().FirstOrDefault();
if (stack != null) return (bay, stack);
}
}