mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-14 15:35:31 +00:00
be yet more tolerant for on-ground checks on players
This commit is contained in:
parent
bddd7e0eee
commit
52d0ad8a61
@ -1378,8 +1378,8 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
protected function checkGroundState(float $movX, float $movY, float $movZ, float $dx, float $dy, float $dz){
|
protected function checkGroundState(float $movX, float $movY, float $movZ, float $dx, float $dy, float $dz){
|
||||||
if(!$this->onGround or $movY != 0){
|
if(!$this->onGround or $movY != 0){
|
||||||
$bb = clone $this->boundingBox;
|
$bb = clone $this->boundingBox;
|
||||||
$bb->minY = $this->y - 0.1;
|
$bb->minY = $this->y - 0.2;
|
||||||
$bb->maxY = $this->y + 0.1;
|
$bb->maxY = $this->y + 0.2;
|
||||||
|
|
||||||
if(count($this->level->getCollisionBlocks($bb, true)) > 0){
|
if(count($this->level->getCollisionBlocks($bb, true)) > 0){
|
||||||
$this->onGround = true;
|
$this->onGround = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user