From 7236f4aad6976e6825dc30af3c18752b28efcef6 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Tue, 14 May 2013 21:01:40 +0200 Subject: [PATCH] Few fixes --- src/Player.php | 1 - src/world/Entity.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Player.php b/src/Player.php index e7d44d783..25a8283d2 100644 --- a/src/Player.php +++ b/src/Player.php @@ -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); } } diff --git a/src/world/Entity.php b/src/world/Entity.php index 5ea1b0aae..ce2ef2364 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -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]); } }