Remove redundant inventory resend on gamemode change

inventory isn't modified, so there is no need to resend it
This commit is contained in:
Dylan K. Taylor 2017-11-19 15:34:29 +00:00
parent c75e62b38c
commit 3bc3a0bb49

View File

@ -1310,11 +1310,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
}
$this->sendSettings();
$this->inventory->sendContents($this);
$this->inventory->sendContents($this->getViewers());
$this->inventory->sendHeldItem($this->hasSpawned);
$this->inventory->sendCreativeContents();
return true;