From e7d121b6b0fea3ea551fc64c2d382f0bff066d22 Mon Sep 17 00:00:00 2001 From: PrPleGoo Date: Wed, 8 Apr 2020 16:08:16 +0200 Subject: [PATCH] Update InjectorComponent.cs --- .../GameObjects/Components/Chemistry/InjectorComponent.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Content.Client/GameObjects/Components/Chemistry/InjectorComponent.cs b/Content.Client/GameObjects/Components/Chemistry/InjectorComponent.cs index 4d46ddf5f0..359dbeb282 100644 --- a/Content.Client/GameObjects/Components/Chemistry/InjectorComponent.cs +++ b/Content.Client/GameObjects/Components/Chemistry/InjectorComponent.cs @@ -30,13 +30,9 @@ namespace Content.Client.GameObjects.Components.Chemistry //Handle net updates public override void HandleComponentState(ComponentState curState, ComponentState nextState) { - if(curState == null) + var cast = (InjectorComponentState) curState; + if (cast != null) { - return; - } - if(curState.GetType() == typeof(InjectorComponentState)) - { - var cast = (InjectorComponentState) curState; CurrentVolume = cast.CurrentVolume; TotalVolume = cast.TotalVolume; CurrentMode = cast.CurrentMode;