From 9d90f886878c46b18238105176bceff2de13e0af Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 11 Apr 2016 20:48:15 +1000 Subject: [PATCH] Fix /os map add always generating a flat map. (Thanks BPzeBanshee) --- Commands/CmdOverseer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Commands/CmdOverseer.cs b/Commands/CmdOverseer.cs index 9f069ec0c..e3f21a0ac 100644 --- a/Commands/CmdOverseer.cs +++ b/Commands/CmdOverseer.cs @@ -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.");