mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 14:05:35 +00:00
Merge branch 'release/3.0' into release/3.1
This commit is contained in:
commit
4d1e56069d
@ -1487,14 +1487,11 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected function checkGroundState(float $movX, float $movY, float $movZ, float $dx, float $dy, float $dz) : void{
|
protected function checkGroundState(float $movX, float $movY, float $movZ, float $dx, float $dy, float $dz) : void{
|
||||||
if(!$this->onGround or $movY != 0){
|
$bb = clone $this->boundingBox;
|
||||||
$bb = clone $this->boundingBox;
|
$bb->minY = $this->y - 0.2;
|
||||||
$bb->minY = $this->y - 0.2;
|
$bb->maxY = $this->y + 0.2;
|
||||||
$bb->maxY = $this->y + 0.2;
|
|
||||||
|
|
||||||
$this->onGround = count($this->level->getCollisionBlocks($bb, true)) > 0;
|
$this->onGround = $this->isCollided = count($this->level->getCollisionBlocks($bb, true)) > 0;
|
||||||
}
|
|
||||||
$this->isCollided = $this->onGround;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function canBeMovedByCurrents() : bool{
|
public function canBeMovedByCurrents() : bool{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user