Skip to content

Commit

Permalink
Shorten if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Jun 19, 2024
1 parent ab7808d commit 8f9fc18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fika.Core/Coop/Players/CoopPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public override GClass1688 ApplyShot(DamageInfo damageInfo, EBodyPart bodyPartTy
return SimulatedApplyShot(damageInfo, bodyPartType, colliderType, armorPlateCollider, shotId);
}

if (damageInfo.Player != null && damageInfo.Player.iPlayer is CoopBot)
if (damageInfo.Player?.iPlayer is CoopBot)
{
return SimulatedApplyShot(damageInfo, bodyPartType, colliderType, armorPlateCollider, shotId);
}
Expand Down

0 comments on commit 8f9fc18

Please sign in to comment.