mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Direct fix for speed hack
This commit is contained in:
@ -375,7 +375,7 @@ class Entity extends stdClass{
|
|||||||
|
|
||||||
if($this->class === ENTITY_PLAYER){
|
if($this->class === ENTITY_PLAYER){
|
||||||
$this->calculateVelocity();
|
$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]);
|
$this->player->lastCorrect = new Vector3($this->last[0], $this->last[1], $this->last[2]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user