Fix null-state handling for InjectorComponent
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user