From 125f1c11b4cb5d1402361616c11470541a4000ba Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Sun, 6 Jan 2013 01:16:49 +0100 Subject: [PATCH] Added Furnace --- src/API/BlockAPI.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/API/BlockAPI.php b/src/API/BlockAPI.php index 1d4b84cc3..43be3cc2d 100644 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -239,9 +239,21 @@ class BlockAPI{ "windowid" => 1, "type" => WINDOW_CHEST, "slots" => 27, - "title" => "Random Chest", + "title" => "Chest", )); break; + case 61: + case 62: + if($this->server->gamemode === 1){ + break; + } + $this->server->api->player->getByEID($data["eid"])->dataPacket(MC_CONTAINER_OPEN, array( + "windowid" => 1, + "type" => WINDOW_FURNACE, + "slots" => 3, + "title" => "Furnace", + )); + break; case 6: if($data["block"] === 351 and $data["meta"] === 0x0F){ //Bonemeal Sapling::growTree($this->server->api->level, $target, $target[1] & 0x03);