Creative inventory fixes

This commit is contained in:
Dylan K. Taylor
2016-10-01 12:21:39 +01:00
parent 98ea674d20
commit 92784054cd
2 changed files with 18 additions and 9 deletions

View File

@ -1098,6 +1098,9 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
$this->inventory->sendContents($this);
$this->inventory->sendContents($this->getViewers());
$this->inventory->sendHeldItem($this->hasSpawned);
if($this->isCreative()){
$this->inventory->sendCreativeContents();
}
return true;
}
@ -1733,6 +1736,10 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
$this->setRemoveFormat(false);
}
if($this->isCreative()){
$this->inventory->sendCreativeContents();
}
$this->forceMovement = $this->teleportPosition = $this->getPosition();
$this->server->onPlayerLogin($this);