From 0ca18864f37830ad93896554b3988082a3cb3bdb Mon Sep 17 00:00:00 2001 From: Michael Yoo Date: Sun, 2 Jun 2013 10:22:28 +0930 Subject: [PATCH] Fixes #311 --- src/world/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world/Entity.php b/src/world/Entity.php index dc658864..d17e2a4f 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -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; }