diff --git a/src/world/Entity.php b/src/world/Entity.php index 5a158e095..7ec998c52 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; }