mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
Hacky fix for players not spawning in CTF. (Thanks VenkSociety)
all games code really needs a rewrite
This commit is contained in:
parent
aa558ec565
commit
9fa3b8d752
@ -275,6 +275,16 @@ namespace MCGalaxy.Games {
|
||||
zline = mainlevel.Length / 2;
|
||||
}
|
||||
|
||||
internal void SpawnPlayer(Player p) {
|
||||
if (p.level != mainlevel) return;
|
||||
|
||||
if (GetPlayer(p).blue) {
|
||||
bluebase.SendToSpawn(mainlevel, this, p);
|
||||
} else {
|
||||
redbase.SendToSpawn(mainlevel, this, p);
|
||||
}
|
||||
}
|
||||
|
||||
string Vote()
|
||||
{
|
||||
started = false;
|
||||
|
@ -122,6 +122,7 @@ namespace MCGalaxy {
|
||||
internal static void CheckGamesJoin(Player p, Level oldLvl) {
|
||||
Server.lava.PlayerJoinedLevel(p, p.level, oldLvl);
|
||||
Server.zombie.PlayerJoinedLevel(p, p.level, oldLvl);
|
||||
if (Server.ctf != null) Server.ctf.SpawnPlayer(p);
|
||||
|
||||
if (p.inTNTwarsMap) p.canBuild = true;
|
||||
TntWarsGame game = TntWarsGame.Find(p.level);
|
||||
|
Loading…
x
Reference in New Issue
Block a user