World should only be completely immutable if we're in spectator mode

Fixes being unable to break any blocks at all in adventure mode
This commit is contained in:
Dylan K. Taylor 2017-04-18 20:01:51 +01:00
parent 207056fb9d
commit 86de0bddd9

View File

@ -1319,7 +1319,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
public function sendSettings(){
$pk = new AdventureSettingsPacket();
$pk->flags = 0;
$pk->worldImmutable = $this->isAdventure();
$pk->worldImmutable = $this->isSpectator();
$pk->autoJump = $this->autoJump;
$pk->allowFlight = $this->allowFlight;
$pk->noClip = $this->isSpectator();