mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Fixed players getting kicked for flying when going through special blocks
This commit is contained in:
@@ -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()){
|
||||
|
Reference in New Issue
Block a user