From 2fd27a745b4d585e95fff51d910ba11a655fd1c9 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 4 Jul 2016 21:03:57 +1000 Subject: [PATCH] Fix /botsummon not saving bot position changes on main level. --- Commands/Bots/CmdBotSummon.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Commands/Bots/CmdBotSummon.cs b/Commands/Bots/CmdBotSummon.cs index 900483fd9..4b5672508 100644 --- a/Commands/Bots/CmdBotSummon.cs +++ b/Commands/Bots/CmdBotSummon.cs @@ -15,6 +15,8 @@ or implied. See the Licenses for the specific language governing permissions and limitations under the Licenses. */ +using MCGalaxy.Bots; + namespace MCGalaxy.Commands { public sealed class CmdBotSummon : Command { public override string name { get { return "botsummon"; } } @@ -34,10 +36,11 @@ namespace MCGalaxy.Commands { Player.Message(p, who.name + " is in a different level."); return; } who.SetPos(p.pos[0], p.pos[1], p.pos[2], p.rot[0], p.rot[1]); + BotsFile.UpdateBot(who); } public override void Help(Player p) { - Player.Message(p, "%T/botsummon "); + Player.Message(p, "%T/botsummon [name]"); Player.Message(p, "%HSummons a bot to your position."); } }