Fixed packets

This commit is contained in:
Shoghi Cervantes
2015-03-12 15:38:17 +01:00
parent 00942d3a2b
commit 5b3ce2da9d
5 changed files with 10 additions and 15 deletions

View File

@ -24,7 +24,7 @@ namespace pocketmine\tile;
use pocketmine\level\format\FullChunk;
use pocketmine\nbt\NBT;
use pocketmine\nbt\tag\Compound;
use pocketmine\network\protocol\EntityDataPacket;
use pocketmine\network\protocol\TileEntityDataPacket;
use pocketmine\Player;
abstract class Spawnable extends Tile{
@ -36,7 +36,7 @@ abstract class Spawnable extends Tile{
$nbt = new NBT(NBT::LITTLE_ENDIAN);
$nbt->setData($this->getSpawnCompound());
$pk = new EntityDataPacket();
$pk = new TileEntityDataPacket();
$pk->x = $this->x;
$pk->y = $this->y;
$pk->z = $this->z;
@ -64,4 +64,4 @@ abstract class Spawnable extends Tile{
}
}
}
}
}