From 11fc79ebad2b459e6a5f4655bd925b1bb48f1616 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Wed, 4 May 2016 10:44:28 +1000 Subject: [PATCH] Botsummon should also set bot's pitch. (Thanks goodlyay) --- Commands/Moderation/CmdBotSummon.cs | 2 +- Commands/Moderation/CmdRenameLvl.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Commands/Moderation/CmdBotSummon.cs b/Commands/Moderation/CmdBotSummon.cs index 680e537cd..b4b6f2066 100644 --- a/Commands/Moderation/CmdBotSummon.cs +++ b/Commands/Moderation/CmdBotSummon.cs @@ -34,7 +34,7 @@ namespace MCGalaxy.Commands PlayerBot who = PlayerBot.Find(message); if (who == null) { Player.SendMessage(p, "There is no bot " + message + "!"); return; } if (p.level != who.level) { Player.SendMessage(p, who.name + " is in a different level."); return; } - who.SetPos(p.pos[0], p.pos[1], p.pos[2], p.rot[0], 0); + who.SetPos(p.pos[0], p.pos[1], p.pos[2], p.rot[0], p.rot[1]); } public override void Help(Player p) { diff --git a/Commands/Moderation/CmdRenameLvl.cs b/Commands/Moderation/CmdRenameLvl.cs index 61063e062..6440b7569 100644 --- a/Commands/Moderation/CmdRenameLvl.cs +++ b/Commands/Moderation/CmdRenameLvl.cs @@ -35,7 +35,7 @@ namespace MCGalaxy.Commands { if (lvl == null) { Player.SendMessage(p, "Level not found"); return; } string newName = args[1]; if (!Player.ValidName(newName)) { - Player.SendMessage("\"" + newName + "\" is not a valid level name."); return; + Player.SendMessage(p, "\"" + newName + "\" is not a valid level name."); return; } if (LevelInfo.ExistsOffline(newName)) { Player.SendMessage(p, "Level already exists."); return; }