diff --git a/src/constants/ItemIDs.php b/src/constants/ItemIDs.php index 431e7c8aa..1082de446 100644 --- a/src/constants/ItemIDs.php +++ b/src/constants/ItemIDs.php @@ -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); diff --git a/src/material/block/solid/LitPumpkin.php b/src/material/block/solid/LitPumpkin.php index cebe24968..91c0dd07c 100644 --- a/src/material/block/solid/LitPumpkin.php +++ b/src/material/block/solid/LitPumpkin.php @@ -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; + } } \ No newline at end of file