Fix puddle overflow exception on space.

This commit is contained in:
Vera Aguilera Puerto
2021-05-08 03:18:57 +02:00
parent 7f868455bc
commit 5f65c12d2f

View File

@@ -345,6 +345,10 @@ namespace Content.Server.GameObjects.Components.Fluids
{ {
puddle = default; puddle = default;
// We're most likely in space, do nothing.
if (!Owner.Transform.GridID.IsValid())
return false;
var mapGrid = _mapManager.GetGrid(Owner.Transform.GridID); var mapGrid = _mapManager.GetGrid(Owner.Transform.GridID);
var coords = Owner.Transform.Coordinates; var coords = Owner.Transform.Coordinates;