Skip to content

Commit

Permalink
Revert "jedi nt spawn fix"
Browse files Browse the repository at this point in the history
This reverts commit 557ee92.
  • Loading branch information
Doublechest committed Jul 17, 2024
1 parent 557ee92 commit 9bc6159
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Content.Server/Spawners/EntitySystems/SpawnPointSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ private void OnPlayerSpawning(PlayerSpawningEvent args)
// TODO: Refactor gameticker spawning code so we don't have to do this!
var points2 = EntityQueryEnumerator<SpawnPointComponent, TransformComponent>();

if (points2.MoveNext(out var spawnPointUid, out var spawnPoint, out var xform)) // Stories
if (points2.MoveNext(out var spawnPoint, out var xform))
{
if (spawnPoint.SpawnType == SpawnPointType.LateJoin && _stationSystem.GetOwningStation(spawnPointUid, xform) == args.Station) possiblePositions.Add(xform.Coordinates); // Stories. Лучше спавнить в позднем присоед., чем вообще в любой точке.
possiblePositions.Add(xform.Coordinates);
}
else
{
Expand Down

0 comments on commit 9bc6159

Please sign in to comment.