mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Direct fix for speed hack
This commit is contained in:
parent
076691ec52
commit
f7af97c651
@ -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]);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user