From c2e46a4637516de276d1bb528fe31b89cfc112a1 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 10 Oct 2026 05:34:47 +0200 Subject: [PATCH] ConsumableSupplyTests: count consumables in docking-bay holds too (a station's first bay is its dock) Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/ConsumableSupplyTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Aetheria.Shared.Tests/ConsumableSupplyTests.cs b/tests/Aetheria.Shared.Tests/ConsumableSupplyTests.cs index 362b0e283..545392834 100644 --- a/tests/Aetheria.Shared.Tests/ConsumableSupplyTests.cs +++ b/tests/Aetheria.Shared.Tests/ConsumableSupplyTests.cs @@ -132,7 +132,8 @@ public sealed class ConsumableSupplyTests : IDisposable } private static ConsumableItem[] Consumables(EntityPack pack) => - pack.CargoContents.SelectMany(bay => bay).Select(entry => entry.item).OfType().ToArray(); + pack.CargoContents.Concat(pack.DockingBayContents ?? Array.Empty<(int2 position, ItemInstance item)[]>()) + .SelectMany(bay => bay).Select(entry => entry.item).OfType().ToArray(); // Distinct, fixed seeds: the same 400 generators on every run. private static uint SeedOf(int i) => (uint) (i * 7919 + 13);