mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Fixed player fall damage
This commit is contained in:
parent
049103ab7a
commit
a0df0a8fff
@ -1332,7 +1332,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
||||
|
||||
$dy = $newPos->y - $this->y;
|
||||
|
||||
if(($this->onGround and $dy > 0) or (!$this->onGround and $dy <= 0)){
|
||||
if(($this->onGround and $dy != 0) or (!$this->onGround and $dy <= 0)){
|
||||
if(count($this->getLevel()->getCollisionBlocks($this->boundingBox->getOffsetBoundingBox(0, $dy - 0.1, 0))) > 0){
|
||||
$isColliding = true;
|
||||
}else{
|
||||
|
Loading…
x
Reference in New Issue
Block a user