mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-25 22:30:52 -04:00
Fix /os map add <type> always generating a flat map. (Thanks BPzeBanshee)
This commit is contained in:
parent
37cd6c59c9
commit
9d90f88687
@ -155,7 +155,8 @@ namespace MCGalaxy.Commands
|
||||
string type = noTypeArg ? "flat" : args[args.Length - 1];
|
||||
if (MapGen.IsRecognisedFormat(type)) {
|
||||
Player.SendMessage(p, "Creating a new map for you: " + level);
|
||||
string cmdArgs = args.Length == 1 ? "128 64 128 flat" : (noTypeArg ? value + " flat" : value);
|
||||
string cmdArgs = args.Length <= 1 ? "128 64 128" : value;
|
||||
if (args.Length <= 3) cmdArgs += " " + type;
|
||||
Command.all.Find("newlvl").Use(p, level + " " + cmdArgs);
|
||||
} else {
|
||||
Player.SendMessage(p, "Invalid map type was specified.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user