Fix anchorable InteractUsing not cooperating with the rest of event handlers
This commit is contained in:
@@ -26,6 +26,9 @@ namespace Content.Server.Construction
|
|||||||
|
|
||||||
private async void OnInteractUsing(EntityUid uid, AnchorableComponent anchorable, InteractUsingEvent args)
|
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 the used entity doesn't have a tool, return early.
|
||||||
if (!EntityManager.TryGetComponent(args.Used.Uid, out ToolComponent? usedTool))
|
if (!EntityManager.TryGetComponent(args.Used.Uid, out ToolComponent? usedTool))
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user