mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 09:49:50 +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);
|
$this->entityBaseTick(1);
|
||||||
|
|
||||||
if($this->onGround){
|
if($this->onGround or $this->fallDistance === 0){
|
||||||
$this->inAirTicks = 0;
|
$this->inAirTicks = 0;
|
||||||
}else{
|
}else{
|
||||||
if($this->inAirTicks > 20 and $this->isSurvival() and !$this->isSleeping()){
|
if($this->inAirTicks > 20 and $this->isSurvival() and !$this->isSleeping()){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user