Some manual TryGetComponent inlines

This commit is contained in:
Vera Aguilera Puerto
2021-12-03 12:51:44 +01:00
parent 0feebbff00
commit f3edecf994
10 changed files with 22 additions and 15 deletions

View File

@@ -430,7 +430,8 @@ namespace Content.Server.WireHacking
var activeHandEntity = handsComponent.GetActiveHand?.Owner;
ToolComponent? tool = null;
activeHandEntity?.TryGetComponent(out tool);
if(activeHandEntity != null)
activeHandEntity.TryGetComponent(out tool);
var toolSystem = EntitySystem.Get<ToolSystem>();
switch (msg.Action)