mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Fixed #186 players not teleporting due to speed check
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user