Make anchorable not spammable (#8202)
* weh * Make anchorable not spammable
This commit is contained in:
@@ -15,7 +15,7 @@ public abstract class SharedAnchorableSystem : EntitySystem
|
||||
SubscribeLocalEvent<AnchorableComponent, InteractUsingEvent>(OnInteractUsing, after: new[] { typeof(SharedConstructionSystem) });
|
||||
}
|
||||
|
||||
private async void OnInteractUsing(EntityUid uid, AnchorableComponent anchorable, InteractUsingEvent args)
|
||||
private void OnInteractUsing(EntityUid uid, AnchorableComponent anchorable, InteractUsingEvent args)
|
||||
{
|
||||
if (args.Handled)
|
||||
return;
|
||||
@@ -25,16 +25,16 @@ public abstract class SharedAnchorableSystem : EntitySystem
|
||||
return;
|
||||
|
||||
args.Handled = true;
|
||||
await TryToggleAnchor(uid, args.User, args.Used, anchorable, usingTool: usedTool);
|
||||
TryToggleAnchor(uid, args.User, args.Used, anchorable, usingTool: usedTool);
|
||||
}
|
||||
|
||||
public virtual async Task<bool> TryToggleAnchor(EntityUid uid, EntityUid userUid, EntityUid usingUid,
|
||||
public virtual void TryToggleAnchor(EntityUid uid, EntityUid userUid, EntityUid usingUid,
|
||||
AnchorableComponent? anchorable = null,
|
||||
TransformComponent? transform = null,
|
||||
SharedPullableComponent? pullable = null,
|
||||
ToolComponent? usingTool = null)
|
||||
{
|
||||
// Thanks tool system.
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user