From 6d9d78a73c38708a0d29c8eb5032504429e793b0 Mon Sep 17 00:00:00 2001 From: Yuri Date: Thu, 9 Sep 2021 12:54:24 +0300 Subject: [PATCH] Grid Module. Add temp GPS coordinates on request. https://github.com/TorchAPI/Essentials/issues/196 --- Essentials/Commands/GridModule.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Essentials/Commands/GridModule.cs b/Essentials/Commands/GridModule.cs index 1eec6dd..6861c32 100644 --- a/Essentials/Commands/GridModule.cs +++ b/Essentials/Commands/GridModule.cs @@ -198,13 +198,12 @@ public void List() sb.AppendLine($"{grid.DisplayName} - {grid.GridSizeEnum} - {grid.BlocksCount} blocks - Position {(EssentialsPlugin.Instance.Config.UtilityShowPosition ? grid.PositionComp.GetPosition().ToString() : "Unknown")}"); if (EssentialsPlugin.Instance.Config.MarkerShowPosition) { - var gridGPS = MyAPIGateway.Session?.GPS.Create(grid.DisplayName, ($"{grid.DisplayName} - {grid.GridSizeEnum} - {grid.BlocksCount} blocks"), grid.PositionComp.GetPosition(), true); - + // Add temp GPS coordinates on request. + var gridGPS = MyAPIGateway.Session?.GPS.Create(grid.DisplayName, ($"{grid.DisplayName} - {grid.GridSizeEnum} - {grid.BlocksCount} blocks"), grid.PositionComp.GetPosition(), true, true); MyAPIGateway.Session?.GPS.AddGps(Context.Player.IdentityId, gridGPS); } } } - ModCommunication.SendMessageTo(new DialogMessage("Grids List", $"Ships/Stations owned by {Context.Player.DisplayName}", sb.ToString()), Context.Player.SteamUserId); }