From 0b92e96e14a30fd3537ff35cc4cd0edd506ba75a Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 31 Oct 2020 16:10:02 +0000 Subject: [PATCH] Player: set silent flag in spectator --- src/player/Player.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/player/Player.php b/src/player/Player.php index c7704d690..4bc7070e1 100644 --- a/src/player/Player.php +++ b/src/player/Player.php @@ -983,6 +983,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{ if($this->isSpectator()){ $this->setFlying(true); + $this->setSilent(); $this->onGround = false; //TODO: HACK! this syncs the onground flag with the client so that flying works properly @@ -992,6 +993,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{ if($this->isSurvival()){ $this->setFlying(false); } + $this->setSilent(false); $this->checkGroundState(0, 0, 0, 0, 0, 0); } }