Fixed moving to fast message during Player blocking

This commit is contained in:
Shoghi Cervantes 2013-05-21 18:40:00 +02:00
parent 8e8002c479
commit 4766424cb3
2 changed files with 10 additions and 38 deletions

View file

@ -962,7 +962,9 @@ class Player{
if($this->lastCorrect instanceof Vector3){
$this->teleport($this->lastCorrect, $this->entity->yaw, $this->entity->pitch, false);
}
console("[WARNING] ".$this->username." moved too quickly!");
if($this->blocked !== true){
console("[WARNING] ".$this->username." moved too quickly!");
}
}else{
$this->entity->setPosition(new Vector3($data["x"], $data["y"], $data["z"]), $data["yaw"], $data["pitch"]);
}