mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 18:59:00 +00:00
Added no PvP flag for spectator mode, fixes nodamage sound in spectator
This commit is contained in:
parent
86742fcf30
commit
69ae37d191
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user