OBT/1.0.11

Fixed a bug that caused the server to stop responding
Fixed an issue in gap.Update that may cause the server to crash
This commit is contained in:
NotAlwaysTrue
2025-12-30 17:41:50 +08:00
committed by GitHub
parent 4c151a4cf1
commit 82d26b5bb8
4 changed files with 22 additions and 7 deletions
@@ -812,7 +812,7 @@ namespace Barotrauma
if (outsideCollisionBlocker == null) { return false; }
if (IsRoomToRoom || Submarine == null || open <= 0.0f || linkedTo.Count == 0 || linkedTo[0] is not Hull)
{
outsideCollisionBlocker.Enabled = false;
outsideCollisionBlocker.AddToDisableQueue();
return false;
}
@@ -686,6 +686,7 @@ namespace Barotrauma
gap.ResetWaterFlowThisFrame();
gap.Update(deltaTime, cam);
});
FarseerPhysics.Dynamics.Body.QueueDisable();
},
// Powered components update
() =>