mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
Fixed #186 players not teleporting due to speed check
This commit is contained in:
parent
93cfa035d4
commit
8405c74b42
2 changed files with 12 additions and 5 deletions
|
|
@ -545,7 +545,11 @@ class Entity extends stdClass{
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public function resetSpeed(){
|
||||
$this->speedMeasure = array(0, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
public function getSpeed(){
|
||||
return array_sum($this->speedMeasure) / count($this->speedMeasure);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue