Skip to content

Commit

Permalink
Grid Module.
Browse files Browse the repository at this point in the history
Add temp GPS coordinates on request.
TorchAPI#196
  • Loading branch information
dorimanx committed Sep 9, 2021
1 parent 6be14d7 commit 6d9d78a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Essentials/Commands/GridModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 6d9d78a

Please sign in to comment.