Fix AI shutting storage crash (#1344)
Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
@@ -56,9 +56,9 @@ namespace Content.Server.AI.WorldState
|
||||
}
|
||||
}
|
||||
|
||||
public void GetState(Type type, out IAiState state)
|
||||
public void GetStoredState<T>(Type type, out StoredStateData<T> state)
|
||||
{
|
||||
state = _states[type];
|
||||
state = (StoredStateData<T>) _states[type];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -25,10 +25,7 @@ namespace Content.Server.AI.WorldState
|
||||
void CheckCache();
|
||||
}
|
||||
|
||||
public interface IStoredState
|
||||
{
|
||||
|
||||
}
|
||||
public interface IStoredState {}
|
||||
|
||||
/// <summary>
|
||||
/// The default class for state values. Also see CachedStateData and PlanningStateData
|
||||
|
||||
Reference in New Issue
Block a user