Allow reloadlua to force the state to running

This commit is contained in:
Evil Factory
2026-04-18 15:37:49 -03:00
parent 12e05cb07e
commit f5f7eb7af9

View File

@@ -260,18 +260,12 @@ namespace Barotrauma
public void OnReloadAllPackages()
{
if (CurrentRunState <= RunState.Unloaded)
{
return;
}
CoroutineManager.Invoke(() =>
{
var state = CurrentRunState;
SetRunState(RunState.Unloaded);
CoroutineManager.Invoke(() =>
{
SetRunState(state);
SetRunState(RunState.Running);
},0.25f);
});
}