From 7c0f5987d33620b98471dc32a7ae1eb6c890716d Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sun, 15 Feb 2015 16:26:05 +0100 Subject: [PATCH] Fixed players getting kicked for flying when going through special blocks --- src/pocketmine/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 591dab0cf..993c1760a 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -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()){