From f7af97c651df490697f960f26ab2e78b5aee5e1e Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Tue, 9 Apr 2013 21:07:35 +0200 Subject: [PATCH] Direct fix for speed hack --- src/world/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world/Entity.php b/src/world/Entity.php index 67d24613..93b66aff 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -375,7 +375,7 @@ class Entity extends stdClass{ if($this->class === ENTITY_PLAYER){ $this->calculateVelocity(); - if($this->getSpeed() <= 0.001){ + if($this->speed <= 5 or ($this->speed <= 12 and $this->gamemode === CREATIVE)){ $this->player->lastCorrect = new Vector3($this->last[0], $this->last[1], $this->last[2]); } }