This commit is contained in:
Michael Yoo 2013-06-02 10:22:28 +09:30
parent 54b73e5f82
commit 0ca18864f3

View File

@ -436,7 +436,7 @@ class Entity extends Position{
$this->fallY = $y;
$this->fallStart = microtime(true);
}elseif($this->class === ENTITY_PLAYER and ($this->fallStart + 5) < microtime(true)){
if($this->server->api->getProperty("allow-flight") !== true and $this->server->handle("player.flying", $this->player) !== true){
if($this->server->api->getProperty("allow-flight") !== true and $this->server->handle("player.flying", $this->player) !== true and $this->level->getBlock(new Vector3($x, $y - 1, $z)) !== WATER){
$this->player->close("flying");
return;
}