mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +00:00
ctrl-X'd fly
This commit is contained in:
parent
b712c4b7a9
commit
b10963746e
1 changed files with 0 additions and 5 deletions
|
|
@ -692,11 +692,6 @@ class Entity extends Position
|
||||||
if($this->fallY === false or $this->fallStart === false){
|
if($this->fallY === false or $this->fallStart === false){
|
||||||
$this->fallY = $y;
|
$this->fallY = $y;
|
||||||
$this->fallStart = microtime(true);
|
$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){
|
} elseif($y > $this->fallY){
|
||||||
$this->fallY = $y;
|
$this->fallY = $y;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue