Skip to content

Commit 118dd34

Browse files
committed
Update round transition check to require PostRound to PreRoundLobby
1 parent 8f5ba9f commit 118dd34

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Content.Server/_Starlight/ServerTransfer/ServerTransferSystem.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ namespace Content.Server._Starlight.ServerTransfer;
66

77
public sealed class ServerTransferSystem : EntitySystem
88
{
9-
[Dependency] private readonly ISharedPlayerManager _playerManager = default!;
10-
119
private string? _targetAddress;
1210
private ISawmill _sawmill = default!;
1311

@@ -26,7 +24,7 @@ public override void Initialize()
2624

2725
private void OnRunLevelChanged(GameRunLevelChangedEvent ev)
2826
{
29-
if (ev.New != GameRunLevel.PostRound)
27+
if (ev.New != GameRunLevel.PreRoundLobby || ev.Old != GameRunLevel.PostRound)
3028
return;
3129

3230
if (string.IsNullOrEmpty(_targetAddress))

0 commit comments

Comments
 (0)