ToolSystem UseTool doesn't log missing components, slight cleanup for things using tools.

This commit is contained in:
Vera Aguilera Puerto
2021-10-07 23:08:16 +02:00
parent 6b73b89617
commit 0b57420d6e
4 changed files with 3 additions and 9 deletions

View File

@@ -41,7 +41,6 @@ namespace Content.Server.Power.Components
if (_cableDroppedOnCutPrototype == null)
return false;
if (!eventArgs.Using.TryGetComponent<ToolComponent>(out var tool)) return false;
if (!await EntitySystem.Get<ToolSystem>().UseTool(eventArgs.Using.Uid, eventArgs.User.Uid, Owner.Uid, 0f, 0.25f, _cuttingQuality)) return false;
Owner.Delete();