Inline one TryGetComponent overload
This commit is contained in:
@@ -286,7 +286,7 @@ namespace Content.Server.Kitchen.Components
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!itemEntity.TryGetComponent(typeof(ItemComponent), out var food))
|
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent(itemEntity.Uid, typeof(ItemComponent), out var food))
|
||||||
{
|
{
|
||||||
Owner.PopupMessage(eventArgs.User, "microwave-component-interact-using-transfer-fail");
|
Owner.PopupMessage(eventArgs.User, "microwave-component-interact-using-transfer-fail");
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user