Inline UID

This commit is contained in:
Vera Aguilera Puerto
2021-12-03 15:53:09 +01:00
parent 2654775bf0
commit 5cd42c9ad6
803 changed files with 3613 additions and 3577 deletions

View File

@@ -34,7 +34,7 @@ namespace Content.Server.Tools.Components
public async void TryPryTile(IEntity user, EntityCoordinates clickLocation)
{
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent<ToolComponent?>(Owner.Uid, out var tool) && _toolComponentNeeded)
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent<ToolComponent?>(Owner, out var tool) && _toolComponentNeeded)
return;
if (!_mapManager.TryGetGrid(clickLocation.GetGridId(IoCManager.Resolve<IEntityManager>()), out var mapGrid))
@@ -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, toolComponent:tool))
if (_toolComponentNeeded && !await EntitySystem.Get<ToolSystem>().UseTool(Owner, user, null, 0f, 0f, _qualityNeeded, toolComponent:tool))
return;
coordinates.PryTile(IoCManager.Resolve<IEntityManager>(), _mapManager);