mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
Fix 'ZombieGame.ChangeMainWorld' not changing main world in first round.
This commit is contained in:
parent
e315ee67fc
commit
100111037a
@ -247,23 +247,23 @@ namespace MCGalaxy {
|
||||
locationChecker = new Thread(DoLocationChecks);
|
||||
locationChecker.Name = "MCG_LocationCheck";
|
||||
locationChecker.Start();
|
||||
#if DEBUG
|
||||
UseTextures = true;
|
||||
#endif
|
||||
|
||||
InitZombieSurvival();
|
||||
BlockQueue.Start();
|
||||
|
||||
Log("Finished setting up server, finding classicube.net url..");
|
||||
ServerSetupFinished = true;
|
||||
try
|
||||
{
|
||||
if (Server.lava.startOnStartup)
|
||||
Server.lava.Start();
|
||||
if (ZombieGame.StartImmediately)
|
||||
Server.zombie.Start(ZombieGameStatus.InfiniteRounds, null, 0);
|
||||
//This doesnt use the main map
|
||||
if (Server.UseCTF)
|
||||
ctf = new Auto_CTF();
|
||||
}
|
||||
catch (Exception e) { Server.ErrorLog(e); }
|
||||
BlockQueue.Start();
|
||||
}
|
||||
|
||||
void InitZombieSurvival() {
|
||||
if (!ZombieGame.StartImmediately) return;
|
||||
try {
|
||||
Level oldMain = Server.mainLevel;
|
||||
Server.zombie.Start(ZombieGameStatus.InfiniteRounds, null, 0);
|
||||
// Did zombie survival change the main world?
|
||||
if (oldMain != null && oldMain != Server.mainLevel)
|
||||
oldMain.Unload(true, false);
|
||||
} catch (Exception e) { Server.ErrorLog(e); }
|
||||
}
|
||||
|
||||
const string staffUrl = "https://raw.githubusercontent.com/Hetal728/MCGalaxy/master/Uploads/devs.txt";
|
||||
|
Loading…
x
Reference in New Issue
Block a user