Implemented double chest fix, closes #2744, fixes #2493

This commit is contained in:
Shoghi Cervantes
2015-03-17 17:49:10 +01:00
parent ffcdf49912
commit 37bc1273ee
3 changed files with 18 additions and 9 deletions

View File

@@ -1279,7 +1279,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
if($diff > 0.6 and $expectedVelocity < $this->speed->y and !$this->server->getAllowFlight()){
if($this->inAirTicks < 100){
$this->setMotion(new Vector3(0, $expectedVelocity, 0));
}elseif($this->kick("Flying is not enabled on this server"))
}elseif($this->kick("Flying is not enabled on this server")){
return false;
}
}