From 7c9255e21eeb2bba57afcfca49d3e494261d29f7 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sat, 7 Sep 2013 21:27:05 +0200 Subject: [PATCH] Incremented speedMeasure() size --- src/world/Entity.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/world/Entity.php b/src/world/Entity.php index 12ed898fa..51bbe3c60 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -46,7 +46,7 @@ class Entity extends Position{ public $fallY; public $fallStart; private $tickCounter; - private $speedMeasure = array(0, 0, 0); + private $speedMeasure = array(0, 0, 0, 0, 0, 0, 0); private $server; private $isStatic; public $level; @@ -519,7 +519,7 @@ class Entity extends Position{ } $this->calculateVelocity(); - if($this->speed <= 7 or ($this->speed <= 15 and ($this->player->gamemode & 0x01) === 0x01)){ + if($this->speed <= 9 or ($this->speed <= 20 and ($this->player->gamemode & 0x01) === 0x01)){ $this->player->lastCorrect = new Vector3($this->last[0], $this->last[1], $this->last[2]); } } @@ -848,7 +848,7 @@ class Entity extends Position{ } public function resetSpeed(){ - $this->speedMeasure = array(0, 0, 0); + $this->speedMeasure = array(0, 0, 0, 0, 0, 0, 0); } public function getSpeed(){