Fill proof cargo through typed bays
This commit is contained in:
parent
583e16f543
commit
8d400607f9
2 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue