Fixed some items not keeping meta when constructed, close #968

This commit is contained in:
Dylan K. Taylor
2017-07-30 19:46:24 +01:00
parent 1f4e6535bb
commit 8a3b31077e
28 changed files with 28 additions and 28 deletions

View File

@ -28,7 +28,7 @@ use pocketmine\block\Block;
class Carrot extends Food{
public function __construct($meta = 0, $count = 1){
$this->block = Block::get(Item::CARROT_BLOCK);
parent::__construct(self::CARROT, 0, $count, "Carrot");
parent::__construct(self::CARROT, $meta, $count, "Carrot");
}
public function getFoodRestore() : int{