From 5b8d4bba119b6c24fe12a1fa1ba13102db5ff911 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Mon, 15 Sep 2014 20:32:27 +0200 Subject: [PATCH] Fixed issues with placing doors --- src/pocketmine/block/Door.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/block/Door.php b/src/pocketmine/block/Door.php index 9853f7246..00698ae74 100644 --- a/src/pocketmine/block/Door.php +++ b/src/pocketmine/block/Door.php @@ -216,10 +216,10 @@ abstract class Door extends Transparent{ if($next->getID() === $this->id or ($next2->isTransparent === false and $next->isTransparent === true)){ //Door hinge $metaUp |= 0x01; } - $this->getLevel()->setBlock($blockUp, Block::get($this->id, $metaUp), true); //Top $this->meta = $player->getDirection() & 0x03; $this->getLevel()->setBlock($block, $this, true, true); //Bottom + $this->getLevel()->setBlock($blockUp, $b = Block::get($this->id, $metaUp), true); //Top return true; }