Few fixes

This commit is contained in:
Shoghi Cervantes Pueyo 2013-05-14 21:01:40 +02:00
parent 2254e87ce4
commit 7236f4aad6
2 changed files with 1 additions and 2 deletions

View File

@ -658,7 +658,6 @@ class Player{
foreach($this->recovery as $count => $d){
$diff = $this->counter[2] - $count;
if($diff > 16 and $d["sendtime"] < $limit){
++$cnt;
$this->directDataPacket($d["id"], $d, $count);
}
}

View File

@ -377,7 +377,7 @@ class Entity extends Position{
if($this->class === ENTITY_PLAYER){
$this->calculateVelocity();
if($this->speed <= 5 or ($this->speed <= 12 and ($player->gamemode & 0x01) === 0x01)){
if($this->speed <= 5 or ($this->speed <= 12 and ($this->player->gamemode & 0x01) === 0x01)){
$this->player->lastCorrect = new Vector3($this->last[0], $this->last[1], $this->last[2]);
}
}