Require typed hull rows for sector summaries

This commit is contained in:
Meta Vens 2026-06-14 01:13:49 +01:00
commit 83ee918fde
3 changed files with 4 additions and 7 deletions

View file

@ -117,11 +117,8 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
private bool HasHullType(RuntimeEntityBlueprint entity, HullType hullType)
{
var typedItem = FindTypedHull(entity);
if (typedItem != null)
return string.Equals(typedItem.HullType, hullType.ToString(), StringComparison.Ordinal);
return GameManager.ItemManager.GetData(entity.Hull) is HullData hullData &&
hullData.HullType == hullType;
return typedItem != null &&
string.Equals(typedItem.HullType, hullType.ToString(), StringComparison.Ordinal);
}
private static AetheriaRuntimeCatalogItem FindTypedHull(RuntimeEntityBlueprint entity)