Fix AnchorableSystem resolve warnings
This commit is contained in:
@@ -26,7 +26,11 @@ namespace Content.Server.Construction
|
||||
|
||||
private async void OnInteractUsing(EntityUid uid, AnchorableComponent anchorable, InteractUsingEvent args)
|
||||
{
|
||||
args.Handled = await TryToggleAnchor(uid, args.User.Uid, args.Used.Uid, anchorable);
|
||||
// If the used entity doesn't have a tool, return early.
|
||||
if (!EntityManager.TryGetComponent(args.Used.Uid, out ToolComponent? usedTool))
|
||||
return;
|
||||
|
||||
args.Handled = await TryToggleAnchor(uid, args.User.Uid, args.Used.Uid, anchorable, usingTool:usedTool);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user