Fixed Tiles/Entities not using the correct chunk type

This commit is contained in:
Shoghi Cervantes
2014-07-30 18:24:59 +02:00
parent 765d4f30c7
commit 1a442b793c
7 changed files with 24 additions and 11 deletions

View File

@ -26,6 +26,7 @@ use pocketmine\inventory\DoubleChestInventory;
use pocketmine\inventory\InventoryHolder;
use pocketmine\item\Item;
use pocketmine\level\format\Chunk;
use pocketmine\level\format\FullChunk;
use pocketmine\math\Vector3 as Vector3;
use pocketmine\nbt\NBT;
use pocketmine\nbt\tag\Byte;
@ -42,7 +43,7 @@ class Chest extends Spawnable implements InventoryHolder, Container{
/** @var DoubleChestInventory */
protected $doubleInventory = null;
public function __construct(Chunk $chunk, Compound $nbt){
public function __construct(FullChunk $chunk, Compound $nbt){
$nbt["id"] = Tile::CHEST;
parent::__construct($chunk, $nbt);
$this->inventory = new ChestInventory($this);