From 3465a5f7e83343c6a2636d9ec32523432b4255ab Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Thu, 6 Mar 2014 02:26:17 +0100 Subject: [PATCH] fixed typo --- src/block/BurningFurnace.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/block/BurningFurnace.php b/src/block/BurningFurnace.php index 77ab1d9d2..78d4f54d8 100644 --- a/src/block/BurningFurnace.php +++ b/src/block/BurningFurnace.php @@ -50,13 +50,15 @@ class BurningFurnaceBlock extends SolidBlock{ if($t instanceof Furnace){ $furnace = $t; }else{ - $furnace = new Furnace($this->level, new NBT\Tag\Compound(false, array( - "Items" => new NBT\Tag\List("Items", array()), + $nbt = new NBT\Tag\Compound(false, array( + "Items" => new NBT\Tag\Enum("Items", array()), "id" => new NBT\Tag\String("id", Tile::FURNACE), "x" => new NBT\Tag\Int("x", $this->x), "y" => new NBT\Tag\Int("y", $this->y), "z" =>new NBT\Tag\Int("z", $this->z) - ))); + )); + $nbt->Items->setTagType(NBT\Tag_Compound); + $furnace = new Furnace($this->level, $nbt); } if(($player->gamemode & 0x01) === 0x01){