Botsummon should also set bot's pitch. (Thanks goodlyay)

This commit is contained in:
UnknownShadow200 2016-05-04 10:44:28 +10:00
parent 659613b7f6
commit 11fc79ebad
2 changed files with 2 additions and 2 deletions

View File

@ -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)
{

View File

@ -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; }