mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -04:00
If changing-levels is not enabled, you only need 1 map for ZS. (Thanks KingMB)
This commit is contained in:
parent
ed2ea2af14
commit
e840728f72
@ -140,10 +140,17 @@ namespace MCGalaxy.Games.ZS {
|
||||
maps.Remove(ignore);
|
||||
|
||||
bool useLevelList = ZombieGameProps.LevelList.Count > 0;
|
||||
if (ZombieGameProps.ChangeLevels) {
|
||||
if (maps.Count <= 3 && !useLevelList) {
|
||||
Server.s.Log("You must have more than 3 levels to change levels in Zombie Survival"); return null; }
|
||||
if (maps.Count <= 3 && useLevelList) {
|
||||
Server.s.Log("You must have more than 3 levels in your level list to change levels in Zombie Survival"); return null; }
|
||||
} else {
|
||||
if (maps.Count == 0 && !useLevelList) {
|
||||
Server.s.Log("You must have at least 1 level to play Zombie Survival"); return null; }
|
||||
if (maps.Count == 0 && useLevelList) {
|
||||
Server.s.Log("You must have at least 1 levels in your level list to play Zombie Survival"); return null; }
|
||||
}
|
||||
return maps;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user