Fix anchorable InteractUsing not cooperating with the rest of event handlers

This commit is contained in:
Vera Aguilera Puerto
2021-11-09 15:10:23 +01:00
parent 4f215c7b45
commit e68fd8668d

View File

@@ -26,6 +26,9 @@ namespace Content.Server.Construction
private async void OnInteractUsing(EntityUid uid, AnchorableComponent anchorable, InteractUsingEvent args)
{
if (args.Handled)
return;
// If the used entity doesn't have a tool, return early.
if (!EntityManager.TryGetComponent(args.Used.Uid, out ToolComponent? usedTool))
return;