Removed flight controls hack for spectator mode

THEY FINALLY FIXED IT
This commit is contained in:
Dylan K. Taylor 2017-09-07 19:06:36 +01:00
parent d7422d9283
commit ebdfbe6bb9

View File

@ -1282,11 +1282,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
if($this->isSpectator()){
$this->flying = true;
$this->despawnFromAll();
// Client automatically turns off flight controls when on the ground.
// A combination of this hack and a new AdventureSettings flag FINALLY
// fixes spectator flight controls. Thank @robske110 for this hack.
$this->teleport($this->temporalVector->setComponents($this->x, $this->y + 0.1, $this->z));
}else{
if($this->isSurvival()){
$this->flying = false;