Added no PvP flag for spectator mode, fixes nodamage sound in spectator

This commit is contained in:
Dylan K. Taylor 2017-06-21 09:42:26 +01:00
parent 86742fcf30
commit 69ae37d191

View File

@ -1338,6 +1338,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
$pk = new AdventureSettingsPacket();
$pk->flags = 0;
$pk->worldImmutable = $this->isSpectator();
$pk->noPvp = $this->isSpectator();
$pk->autoJump = $this->autoJump;
$pk->allowFlight = $this->allowFlight;
$pk->noClip = $this->isSpectator();