mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
more tweaks
This commit is contained in:
parent
6c08b74394
commit
426728342f
3 changed files with 23 additions and 14 deletions
|
|
@ -621,10 +621,10 @@ class Entity extends Position
|
|||
$this->onGround = $support;
|
||||
|
||||
|
||||
if($this->hasGravity){
|
||||
$this->speedY -= $this->inWater ? 0.02 : ($this->gravity); // TODO: replace with $gravity
|
||||
if($this->hasGravity){ //TODO causes setEntityMotion packet flood, fix
|
||||
$this->speedY -= $this->inWater ? 0.02 : ($this->gravity);
|
||||
$update = true;
|
||||
} elseif($this->lastX != $this->x || $this->lastZ != $this->z || $this->lastY != $this->z){
|
||||
}elseif($this->lastX != $this->x || $this->lastZ != $this->z || $this->lastY != $this->z){
|
||||
// $this->speedX = 0;
|
||||
// $this->speedY = 0;
|
||||
// $this->speedZ = 0;
|
||||
|
|
@ -1238,7 +1238,7 @@ class Entity extends Position
|
|||
$this->last[3] = $this->yaw;
|
||||
$this->last[4] = $this->pitch;
|
||||
$this->last[5] = microtime(true);
|
||||
$this->lastHeadYaw = $this->headYaw;
|
||||
//$this->lastHeadYaw = $this->headYaw;
|
||||
}
|
||||
|
||||
public function getPosition($round = false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue