Possibly fix vehicle eye bug (#11525)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user