mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Direct fix for speed hack
This commit is contained in:
parent
076691ec52
commit
f7af97c651
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue