Removed old code

This commit is contained in:
Shoghi Cervantes 2014-06-26 12:03:29 +02:00
parent 3abec0a3c0
commit 7067c09228

View File

@ -1267,13 +1267,13 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
} }
$newPos = new Vector3($packet->x, $packet->y, $packet->z); $newPos = new Vector3($packet->x, $packet->y, $packet->z);
if($this->forceMovement instanceof Vector3){ /*if($this->forceMovement instanceof Vector3){
if($this->forceMovement->distance($newPos) <= 0.7){ if($this->forceMovement->distance($newPos) <= 0.7){
$this->forceMovement = false; $this->forceMovement = false;
}else{ }else{
$this->setPosition($this->forceMovement); $this->setPosition($this->forceMovement);
} }
} }*/
/*$speed = $this->entity->getSpeedMeasure(); /*$speed = $this->entity->getSpeedMeasure();
if($this->blocked === true or ($this->server->api->getProperty("allow-flight") !== true and (($speed > 9 and ($this->gamemode & 0x01) === 0x00) or $speed > 20 or $this->entity->distance($newPos) > 7)) or $this->server->api->handle("player.move", $this->entity) === false){ if($this->blocked === true or ($this->server->api->getProperty("allow-flight") !== true and (($speed > 9 and ($this->gamemode & 0x01) === 0x00) or $speed > 20 or $this->entity->distance($newPos) > 7)) or $this->server->api->handle("player.move", $this->entity) === false){
if($this->lastCorrect instanceof Vector3){ if($this->lastCorrect instanceof Vector3){