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

@@ -52,7 +52,7 @@ namespace Content.Server.Tools.Components
if (!tileDef.CanCrowbar)
return;
if (_toolComponentNeeded && !await EntitySystem.Get<ToolSystem>().UseTool(Owner.Uid, user.Uid, null, 0f, 0f, _qualityNeeded))
if (_toolComponentNeeded && !await EntitySystem.Get<ToolSystem>().UseTool(Owner.Uid, user.Uid, null, 0f, 0f, _qualityNeeded, toolComponent:tool))
return;
coordinates.PryTile(Owner.EntityManager, _mapManager);