File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ private static GameObject WorkStationPrefab
2323 {
2424 if ( _prefab == null )
2525 {
26- _prefab = NetworkClient . prefabs . FirstOrDefault ( x => x . Key == 1783091262 ) . Value ;
26+ _prefab =
27+ NetworkClient . prefabs . FirstOrDefault ( x => x . Key == 1783091262 ) . Value ;
2728 }
2829
2930 return _prefab ;
@@ -34,7 +35,7 @@ private static GameObject WorkStationPrefab
3435
3536 internal static void Register ( )
3637 {
37- ServerEvents . MapGenerated += OnMapGenerated ;
38+ ServerEvents . WaitingForPlayers += OnWaitingForPlayers ;
3839
3940 Scp079Events . Pinging += OnPinging ;
4041 Scp079Events . Recontaining += OnRecontaining ;
@@ -60,7 +61,7 @@ internal static void Register()
6061
6162 internal static void Unregister ( )
6263 {
63- ServerEvents . MapGenerated -= OnMapGenerated ;
64+ ServerEvents . WaitingForPlayers -= OnWaitingForPlayers ;
6465
6566 Scp079Events . BlackingOutRoom -= OnPlayerEvent ;
6667 Scp079Events . BlackingOutZone -= OnPlayerEvent ;
@@ -81,7 +82,7 @@ internal static void Unregister()
8182 PlayerEvents . SendingVoiceMessage -= OnSendingVoiceChat ;
8283 }
8384
84- private static void OnMapGenerated ( MapGeneratedEventArgs _ )
85+ private static void OnWaitingForPlayers ( )
8586 {
8687 if ( WorkStationPrefab == null )
8788 {
You can’t perform that action at this time.
0 commit comments