mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
Incremented speedMeasure() size
This commit is contained in:
parent
0c6eaa0609
commit
7c9255e21e
1 changed files with 3 additions and 3 deletions
|
|
@ -46,7 +46,7 @@ class Entity extends Position{
|
||||||
public $fallY;
|
public $fallY;
|
||||||
public $fallStart;
|
public $fallStart;
|
||||||
private $tickCounter;
|
private $tickCounter;
|
||||||
private $speedMeasure = array(0, 0, 0);
|
private $speedMeasure = array(0, 0, 0, 0, 0, 0, 0);
|
||||||
private $server;
|
private $server;
|
||||||
private $isStatic;
|
private $isStatic;
|
||||||
public $level;
|
public $level;
|
||||||
|
|
@ -519,7 +519,7 @@ class Entity extends Position{
|
||||||
|
|
||||||
}
|
}
|
||||||
$this->calculateVelocity();
|
$this->calculateVelocity();
|
||||||
if($this->speed <= 7 or ($this->speed <= 15 and ($this->player->gamemode & 0x01) === 0x01)){
|
if($this->speed <= 9 or ($this->speed <= 20 and ($this->player->gamemode & 0x01) === 0x01)){
|
||||||
$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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -848,7 +848,7 @@ class Entity extends Position{
|
||||||
}
|
}
|
||||||
|
|
||||||
public function resetSpeed(){
|
public function resetSpeed(){
|
||||||
$this->speedMeasure = array(0, 0, 0);
|
$this->speedMeasure = array(0, 0, 0, 0, 0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getSpeed(){
|
public function getSpeed(){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue