In pCampbot PhysicsBehaviour.Close(), only cancel jumping if bot is connected

0.7.6-extended
Justin Clark-Casey (justincc) 2013-09-03 19:58:27 +01:00
parent 514c58bc96
commit 6f1ff47fee
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ namespace pCampBot
public override void Close()
{
Bot.Client.Self.Jump(false);
if (Bot.ConnectionState == ConnectionState.Connected)
Bot.Client.Self.Jump(false);
}
private string[] readexcuses()