Merge branch 'master' of github.com:PocketMine/PocketMine-MP

This commit is contained in:
Shoghi Cervantes 2014-06-25 02:06:05 +02:00
commit c8ee1da262

View File

@ -41,14 +41,15 @@ class Furnace extends Tile implements InventoryHolder, Container{
$nbt["id"] = Tile::FURNACE;
parent::__construct($chunk, $nbt);
$this->inventory = new FurnaceInventory($this);
for($i = 0; $i < $this->getSize(); ++$i){
$this->inventory->setItem($i, $this->getItem($i));
}
if(!isset($this->namedtag->Items) or !($this->namedtag->Items instanceof Enum)){
$this->namedtag->Items = new Enum("Inventory", []);
$this->namedtag->Items->setTagType(NBT::TAG_Compound);
}
for($i = 0; $i < $this->getSize(); ++$i){
$this->inventory->setItem($i, $this->getItem($i));
}
if(!isset($this->namedtag->BurnTime) or $this->namedtag["BurnTime"] < 0){
$this->namedtag->BurnTime = new Short("BurnTime", 0);
@ -221,4 +222,4 @@ class Furnace extends Tile implements InventoryHolder, Container{
return $ret;
}
}
}