Fix more errors, client and server now build

This commit is contained in:
DrSmugleaf
2021-12-06 14:00:39 +01:00
parent 525297c5fe
commit af4eb3c7cd
32 changed files with 94 additions and 97 deletions

View File

@@ -52,7 +52,7 @@ namespace Content.Client.Tabletop
public override void Update(float frameTime)
{
// If there is no player entity, return
if (_playerManager.LocalPlayer is not {ControlledEntity: var playerEntity}) return;
if (_playerManager.LocalPlayer is not {ControlledEntity: { } playerEntity}) return;
if (StunnedOrNoHands(playerEntity))
{
@@ -167,7 +167,8 @@ namespace Content.Client.Tabletop
private bool OnMouseDown(in PointerInputCmdArgs args)
{
// Return if no player entity
if (_playerManager.LocalPlayer is not { ControlledEntity: var playerEntity}) return false;
if (_playerManager.LocalPlayer is not {ControlledEntity: { } playerEntity})
return false;
// Return if can not see table or stunned/no hands
if (!CanSeeTable(playerEntity, _table) || StunnedOrNoHands(playerEntity))