Some vehicle bugfixes (#11692)

This commit is contained in:
Leon Friedrich
2022-10-04 15:49:46 +13:00
committed by GitHub
parent 47db233091
commit 4148b252c5
8 changed files with 80 additions and 98 deletions

View File

@@ -16,7 +16,7 @@ namespace Content.Shared.Vehicle.Components
/// <summary>
/// Whether someone is currently riding the vehicle
/// </summary>
public bool HasRider = false;
public bool HasRider => Rider != null;
/// <summary>
/// The entity currently riding the vehicle.
@@ -58,6 +58,7 @@ namespace Content.Shared.Vehicle.Components
/// <summary>
/// Whether the vehicle has a key currently inside it or not.
/// </summary>
[ViewVariables]
public bool HasKey = false;
// TODO: Fix this