From 5f65c12d2ff7be96590a10f0b9147537f9ff4701 Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Sat, 8 May 2021 03:18:57 +0200 Subject: [PATCH] Fix puddle overflow exception on space. --- .../GameObjects/Components/Fluids/PuddleComponent.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Content.Server/GameObjects/Components/Fluids/PuddleComponent.cs b/Content.Server/GameObjects/Components/Fluids/PuddleComponent.cs index acb752be08..435ee56ddc 100644 --- a/Content.Server/GameObjects/Components/Fluids/PuddleComponent.cs +++ b/Content.Server/GameObjects/Components/Fluids/PuddleComponent.cs @@ -345,6 +345,10 @@ namespace Content.Server.GameObjects.Components.Fluids { 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 coords = Owner.Transform.Coordinates;