Fix null-state handling for InjectorComponent

This commit is contained in:
PrPleGoo
2020-04-05 11:45:23 +02:00
parent db83789d05
commit f8b73fdc3b

View File

@@ -30,6 +30,10 @@ namespace Content.Client.GameObjects.Components.Chemistry
//Handle net updates //Handle net updates
public override void HandleComponentState(ComponentState curState, ComponentState nextState) public override void HandleComponentState(ComponentState curState, ComponentState nextState)
{ {
if(curState == null)
{
return;
}
if(curState.GetType() == typeof(InjectorComponentState)) if(curState.GetType() == typeof(InjectorComponentState))
{ {
var cast = (InjectorComponentState) curState; var cast = (InjectorComponentState) curState;