mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
pathfinder was changed, 102 bug fixed
This commit is contained in:
parent
2ea5fcd034
commit
7b66cd0250
10 changed files with 424 additions and 160 deletions
|
|
@ -141,6 +141,11 @@ class Entity extends Position{
|
|||
}
|
||||
}
|
||||
|
||||
public function setVelocity($vX, $vY, $vZ){
|
||||
$this->motionX = $vX;
|
||||
$this->motionY = $vY;
|
||||
$this->motionZ = $vZ;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $e Entity instance or EID
|
||||
|
|
@ -492,7 +497,7 @@ class Entity extends Position{
|
|||
}
|
||||
|
||||
if($support === false){
|
||||
$this->speedY -= $this->class === ENTITY_FALLING ? 0.08 : 1.6;
|
||||
$this->speedY -= $this->class === ENTITY_FALLING ? 0.08 : 0.04; //TODO: replace with $gravity
|
||||
$update = true;
|
||||
}else{
|
||||
//$this->speedX = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue