Fill proof cargo through typed bays

This commit is contained in:
Meta Vens 2026-07-19 02:29:41 +01:00
commit 8d400607f9
2 changed files with 3 additions and 3 deletions

View file

@ -341,7 +341,7 @@ internal static class AetheriaDaemonZoneGenerator
if (item.Volume <= 0)
throw new InvalidOperationException($"The cargo-capacity proof item '{itemKey}' must have positive volume.");
var cargoBays = (entity.Equipment ?? Array.Empty<AetheriaEntityItemSlot>())
var cargoBays = (entity.CargoBays ?? Array.Empty<AetheriaEntityItemSlot>())
.Select(slot => catalog.FindItem(slot.ItemKey))
.Where(candidate => candidate != null && candidate.InteriorOccupiedCells > 0)
.ToArray();