From 788dbda53daf06a0f5dabc191507f40bfdb9846c Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Mon, 26 Sep 2022 17:50:32 +1300 Subject: [PATCH] Possibly fix vehicle eye bug (#11525) --- Content.Client/Vehicle/VehicleSystem.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Client/Vehicle/VehicleSystem.cs b/Content.Client/Vehicle/VehicleSystem.cs index e21255a05c..30bee5c949 100644 --- a/Content.Client/Vehicle/VehicleSystem.cs +++ b/Content.Client/Vehicle/VehicleSystem.cs @@ -60,7 +60,9 @@ namespace Content.Client.Vehicle private void OnRiderHandleState(EntityUid uid, RiderComponent component, ref ComponentHandleState args) { - // Server should only be sending states for our entity. + if (uid != _playerManager.LocalPlayer?.ControlledEntity) + return; + if (args.Current is not RiderComponentState state) return; component.Vehicle = state.Entity;