From 941f1479c7c63c13e2b0cfc72f256549ed9c3c1a Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Wed, 26 Dec 2012 19:00:17 +0100 Subject: [PATCH] Correct chest/furnace placement --- TODO.md | 1 - classes/API/BlockAPI.php | 10 ++++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index 1186954c4..9eb75a9bb 100644 --- a/TODO.md +++ b/TODO.md @@ -13,7 +13,6 @@ __Check Milestones [here](https://github.com/shoghicp/PocketMine-MP/issues/miles ## Alpha (full Creative) - Correct block placement for beds -- Correct chest/furnace placement ## Beta (Survival) - Random Chunk Updates diff --git a/classes/API/BlockAPI.php b/classes/API/BlockAPI.php index 54e732f1e..28574d609 100644 --- a/classes/API/BlockAPI.php +++ b/classes/API/BlockAPI.php @@ -388,6 +388,16 @@ class BlockAPI{ $this->updateBlocksAround($data2["x"], $data2["y"], $data2["z"], BLOCK_UPDATE_NORMAL); } break; + case 54: + case 61: + $faces = array( + 0 => 4, + 1 => 2, + 2 => 5, + 3 => 3, + ); + $data["meta"] = $faces[$direction]; + break; case 65: //Ladder if(isset(Material::$transparent[$target[0]])){ return false;