Fixed a potential conflict with mods

This commit is contained in:
NotAlwaysTrue
2025-12-28 14:17:01 +08:00
parent baee73e132
commit 770f76a658

View File

@@ -249,6 +249,9 @@ namespace Barotrauma
() => { if (Level.Loaded != null) Level.Loaded.Update((float)deltaTime, Camera.Instance); },
() => Character.UpdateAll((float)deltaTime, Camera.Instance)
);
//StatusEffect.UpdateAll is not thread-safe and must be executed on the main thread
StatusEffect.UpdateAll((float)deltaTime);
#endif
var submarines = Submarine.Loaded.ToList();
@@ -272,9 +275,6 @@ namespace Barotrauma
MapEntity.UpdateAll((float)deltaTime, Camera.Instance, parallelOptions);
//StatusEffect.UpdateAll is not thread-safe and must be executed on the main thread
StatusEffect.UpdateAll((float)deltaTime);
#endif
#if CLIENT