Inline TryGetComponent completely, for real
This commit is contained in:
@@ -140,7 +140,7 @@ namespace Content.Client.Inventory
|
||||
return;
|
||||
}
|
||||
|
||||
if (entity.TryGetComponent(out ClothingComponent? clothing))
|
||||
if (IoCManager.Resolve<IEntityManager>().TryGetComponent(entity.Uid, out ClothingComponent? clothing))
|
||||
{
|
||||
var flag = SlotMasks[slot];
|
||||
var data = clothing.GetEquippedStateInfo(flag, SpeciesId);
|
||||
|
||||
Reference in New Issue
Block a user