Removed network channels, bumped protocol

This commit is contained in:
Shoghi Cervantes
2015-08-12 14:59:30 +02:00
parent 8889e687c9
commit 31ef7721b1
28 changed files with 166 additions and 154 deletions

View File

@ -269,13 +269,13 @@ class Furnace extends Tile implements InventoryHolder, Container, Nameable{
$pk->windowid = $windowId;
$pk->property = 0; //Smelting
$pk->value = floor($this->namedtag["CookTime"]);
$player->dataPacket($pk->setChannel(Network::CHANNEL_WORLD_EVENTS));
$player->dataPacket($pk);
$pk = new ContainerSetDataPacket();
$pk->windowid = $windowId;
$pk->property = 1; //Fire icon
$pk->value = $this->namedtag["BurnTicks"];
$player->dataPacket($pk->setChannel(Network::CHANNEL_WORLD_EVENTS));
$player->dataPacket($pk);
}
}

View File

@ -42,7 +42,7 @@ abstract class Spawnable extends Tile{
$pk->y = $this->y;
$pk->z = $this->z;
$pk->namedtag = $nbt->write();
$player->dataPacket($pk->setChannel(Network::CHANNEL_WORLD_EVENTS));
$player->dataPacket($pk);
return true;
}