Vapor no longer throws exception in space.

Fixes #3895
This commit is contained in:
Vera Aguilera Puerto
2021-05-04 13:37:06 +02:00
parent 4205e1f602
commit 4854062c15

View File

@@ -66,7 +66,7 @@ namespace Content.Server.GameObjects.Components.Chemistry
_timer += frameTime;
_reactTimer += frameTime;
if (_reactTimer >= ReactTime)
if (_reactTimer >= ReactTime && Owner.Transform.GridID.IsValid())
{
_reactTimer = 0;
var mapGrid = _mapManager.GetGrid(Owner.Transform.GridID);