From 6ba7486097bfe441d6460e6cc7f816f4d4c2c1f8 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Tue, 9 Apr 2013 18:58:32 +0200 Subject: [PATCH] Gamemode check for flying --- 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 5a158e09..7ec998c5 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -351,7 +351,7 @@ class Entity extends stdClass{ $this->fallY = $y; $this->fallStart = microtime(true); }elseif($this->class === ENTITY_PLAYER and ($this->fallStart + 5) < microtime(true)){ - if($this->player->gamemode === CREATIVE and $this->server->api->getProperty("allow-flight") !== true){ + if($this->player->gamemode !== CREATIVE and $this->server->api->getProperty("allow-flight") !== true){ $this->player->close("flying"); return; }