mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-10 05:34:54 +00:00
Fixes #311
This commit is contained in:
parent
54b73e5f82
commit
0ca18864f3
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user