ctrl-X'd fly

This commit is contained in:
GameHerobrine 2023-08-21 06:34:45 +03:00
parent b712c4b7a9
commit b10963746e

View file

@ -692,11 +692,6 @@ class Entity extends Position
if($this->fallY === false or $this->fallStart === false){
$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 and $this->isRiding === false){
$this->player->close("flying");
return;
}
} elseif($y > $this->fallY){
$this->fallY = $y;
}