mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 17:29:44 +00:00
Fixed players getting kicked for flying when going through special blocks
This commit is contained in:
parent
547e152e40
commit
7c0f5987d3
@ -1229,7 +1229,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
||||
|
||||
$this->entityBaseTick(1);
|
||||
|
||||
if($this->onGround){
|
||||
if($this->onGround or $this->fallDistance === 0){
|
||||
$this->inAirTicks = 0;
|
||||
}else{
|
||||
if($this->inAirTicks > 20 and $this->isSurvival() and !$this->isSleeping()){
|
||||
|
Loading…
x
Reference in New Issue
Block a user