File tree 2 files changed +9
-0
lines changed
DistanceServer/PluginProjects/BasicAutoServer 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1
1
[submodule "NetworkDebugger/Spectrum "]
2
2
path = NetworkDebugger/Spectrum
3
3
url = https://github.com/Ciastex/Spectrum
4
+ ignore = dirty
4
5
[submodule "NetworkDebugger/Harmony "]
5
6
path = NetworkDebugger/Harmony
6
7
url = https://github.com/pardeike/Harmony
8
+ ignore = dirty
7
9
[submodule "Patcher/dnlib "]
8
10
path = Patcher/dnlib
9
11
url = https://github.com/0xd4d/dnlib
12
+ ignore = dirty
Original file line number Diff line number Diff line change @@ -232,6 +232,11 @@ System.Collections.IEnumerator DoLoadWorkshopLevels()
232
232
233
233
void AttemptToAdvanceLevel ( )
234
234
{
235
+ if ( Server . StartingLevel || ! Server . HasModeStarted )
236
+ {
237
+ Log . Debug ( $ "Mode not started, not advancing normally.") ;
238
+ return ;
239
+ }
235
240
if ( Server . ValidPlayers . Count == 0 )
236
241
{
237
242
Log . Debug ( $ "No players, not advancing normally.") ;
@@ -248,6 +253,7 @@ void AttemptToAdvanceLevel()
248
253
}
249
254
if ( canAdvance )
250
255
{
256
+ Log . Debug ( $ "Advancing because all players with cars have finished.") ;
251
257
Server . SayChatMessage ( true , "All players finished. Advancing to the next level in 10 seconds." ) ;
252
258
AdvanceLevel ( ) ;
253
259
}
You can’t perform that action at this time.
0 commit comments