From e239b707c508870ac245365e8ebcf58d99b2a2b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Aguilera=20Puerto?= Date: Sun, 6 Sep 2020 17:05:20 +0200 Subject: [PATCH] Replace GridCoordinates (ew) for EntityCoordinates (YAY) --- .../GameObjects/Components/Doors/ServerDoorComponent.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Server/GameObjects/Components/Doors/ServerDoorComponent.cs b/Content.Server/GameObjects/Components/Doors/ServerDoorComponent.cs index 473e55d68e..5bf56df8a8 100644 --- a/Content.Server/GameObjects/Components/Doors/ServerDoorComponent.cs +++ b/Content.Server/GameObjects/Components/Doors/ServerDoorComponent.cs @@ -49,7 +49,7 @@ namespace Content.Server.GameObjects.Components.Doors protected bool AutoClose = true; protected const float AutoCloseDelay = 5; protected float CloseSpeed = AutoCloseDelay; - + private CancellationTokenSource _cancellationTokenSource = new CancellationTokenSource(); protected virtual TimeSpan CloseTimeOne => TimeSpan.FromSeconds(0.3f); @@ -316,7 +316,7 @@ namespace Content.Server.GameObjects.Components.Doors { var atmosphereSystem = EntitySystem.Get(); - if (!Owner.Transform.GridPosition.TryGetTileAtmosphere(out var tileAtmos)) + if (!Owner.Transform.Coordinates.TryGetTileAtmosphere(out var tileAtmos)) return false; var gridAtmosphere = atmosphereSystem.GetGridAtmosphere(Owner.Transform.GridID); @@ -343,7 +343,7 @@ namespace Content.Server.GameObjects.Components.Doors { var atmosphereSystem = EntitySystem.Get(); - if (!Owner.Transform.GridPosition.TryGetTileAtmosphere(out var tileAtmos)) + if (!Owner.Transform.Coordinates.TryGetTileAtmosphere(out var tileAtmos)) return false; if (tileAtmos.Hotspot.Valid)