Make on-ground checking less fussy

This commit is contained in:
Dylan K. Taylor 2017-10-13 13:18:33 +01:00
parent 060426ff12
commit d8c90be5b8

View File

@ -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){
if(!$this->onGround or $movY != 0){
$bb = clone $this->boundingBox;
$bb->minY = $this->y - 0.01;
$bb->maxY = $this->y + 0.01;
$bb->minY = $this->y - 0.1;
$bb->maxY = $this->y + 0.1;
if(count($this->level->getCollisionBlocks($bb, true)) > 0){
$this->onGround = true;