Remove mech component references (#15246)

This commit is contained in:
DrSmugleaf
2023-04-09 15:20:55 -07:00
committed by GitHub
parent 856d1a5086
commit ec28358e06
15 changed files with 130 additions and 191 deletions

View File

@@ -31,7 +31,7 @@ public sealed partial class MechMenu : FancyWindow
public void UpdateMechStats()
{
if (!_ent.TryGetComponent<SharedMechComponent>(_mech, out var mechComp))
if (!_ent.TryGetComponent<MechComponent>(_mech, out var mechComp))
return;
var integrityPercent = mechComp.Integrity / mechComp.MaxIntegrity;