Use typed runtime catalog for item manufacturer UI

This commit is contained in:
Meta Vens 2026-06-13 12:29:32 +01:00
commit 87b622441e
3 changed files with 8 additions and 3 deletions

View file

@ -390,7 +390,7 @@ public class PropertiesPanel : MonoBehaviour
AddProperty("Quantity", () => simpleCommodity.Quantity.ToString());
var sheet = AddStatSheet();
var manufacturer = GameManager.ItemManager.GetCatalogEntry<Faction>(data.Manufacturer);
var manufacturer = ActionGameManager.RuntimeCatalog?.FindCorporationByLegacyId(data.Manufacturer.ToString());
sheet.AddStat("Manufacturer", () => manufacturer?.Name ?? "GameCult");
sheet.AddStat("Mass", () => ActionGameManager.PlayerSettings.Format(GameManager.ItemManager.GetMass(item)));