Skip to content

Commit

Permalink
Add comments to clarify reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
IProduceWidgets committed Jul 1, 2024
1 parent 6f0805b commit 8faf165
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Content.Server/Shuttles/Commands/FTLDiskBurnerCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ public override void Execute(IConsoleShell shell, string argStr, string[] args)
}

DebugTools.AssertNotNull(mapDest);
dest = (EntityUid) mapDest;
dest = (EntityUid) mapDest; // explicit cast here should be fine since the previous if should catch it.
}

// find and verify the map is not somehow unusable.
if (!_entManager.TryGetComponent<MapComponent>(dest, out var mapComp))
if (!_entManager.TryGetComponent<MapComponent>(dest, out var mapComp)) // We have to check for a MapComponent here and above since we could have changed our dest entity.
{
shell.WriteLine(destinations + " is somehow on map " + dest + " with no map component. What the fuck.");
continue;
Expand Down

0 comments on commit 8faf165

Please sign in to comment.