Fixed players getting kicked for flying when going through special blocks

This commit is contained in:
Shoghi Cervantes 2015-02-15 16:26:05 +01:00
parent 547e152e40
commit 7c0f5987d3
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89

View File

@ -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()){