mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Fix #999.
This commit is contained in:
parent
01e9ca7852
commit
050d3424f0
@ -149,7 +149,7 @@ define("SPAWN_EGG", 383);
|
||||
define("CARROT", 391);
|
||||
define("CARROTS", 391);
|
||||
define("POTATO", 392);
|
||||
define("POTATOES", 392);
|
||||
define("POTATOES", 392);//@shoghicp Why the heck do we need plural redundant Item ID here????
|
||||
define("BAKED_POTATO", 393);
|
||||
define("BAKED_POTATOES", 393);
|
||||
|
||||
|
@ -24,5 +24,16 @@ class LitPumpkinBlock extends SolidBlock{
|
||||
parent::__construct(LIT_PUMPKIN, "Jack o'Lantern");
|
||||
$this->hardness = 5;
|
||||
}
|
||||
|
||||
|
||||
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
|
||||
$faces = array(
|
||||
0 => 4,
|
||||
1 => 2,
|
||||
2 => 5,
|
||||
3 => 3,
|
||||
);
|
||||
$this->meta = $faces[$player->entity->getDirection()];
|
||||
$this->level->setBlock($block, $this, true, false, true);
|
||||
return true;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user