Update InjectorComponent.cs

This commit is contained in:
PrPleGoo
2020-04-08 16:08:16 +02:00
parent f8b73fdc3b
commit e7d121b6b0

View File

@@ -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;