0.11.0 build 5, removed chat format workaround, improved gamemode switch, send allowed creative blocks (TBI as API)

This commit is contained in:
Shoghi Cervantes
2015-04-17 17:10:25 +02:00
parent 7ee21f6254
commit 5b10ccf431
6 changed files with 40 additions and 11 deletions

View File

@ -340,7 +340,7 @@ class PlayerInventory extends BaseInventory{
//$pk2->eid = 0;
$pk2 = new ContainerSetContentPacket();
$pk2->windowid = 0x78; //Armor window id constant
$pk2->windowid = ContainerSetContentPacket::SPECIAL_ARMOR;
$pk2->slots = $armor;
$player->dataPacket($pk2);
}else{
@ -397,7 +397,7 @@ class PlayerInventory extends BaseInventory{
if($player === $this->getHolder()){
/** @var Player $player */
$pk2 = new ContainerSetSlotPacket();
$pk2->windowid = 0x78; //Armor window id constant
$pk2->windowid = ContainerSetContentPacket::SPECIAL_ARMOR;
$pk2->slot = $index;
$pk2->item = $this->getItem($index);
$player->dataPacket($pk2);