Fixed #1966 Face Lit Pumkins correctly

This commit is contained in:
Shoghi Cervantes 2014-08-28 11:00:41 +02:00
parent f7de1ede3f
commit 2f2afe2336

View File

@ -31,13 +31,9 @@ class LitPumpkin extends Solid{
}
public function place(Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null){
$faces = array(
0 => 4,
1 => 2,
2 => 5,
3 => 3,
);
$this->meta = $faces[$player->getDirection()];
if($player instanceof Player){
$this->meta = (int) $player->getDirection();
}
$this->getLevel()->setBlock($block, $this, true, false, true);
return true;