Torches can now be crafted using charcoal

This commit is contained in:
Shoghi Cervantes 2014-09-23 19:36:30 +02:00
parent 01f299a7f1
commit 9907e84eee

View File

@ -24,7 +24,7 @@ namespace pocketmine\item;
class Coal extends Item{ class Coal extends Item{
public function __construct($meta = 0, $count = 1){ public function __construct($meta = 0, $count = 1){
parent::__construct(self::COAL, $meta & 0x01, $count, "Coal"); parent::__construct(self::COAL, $meta, $count, "Coal");
if($this->meta === 1){ if($this->meta === 1){
$this->name = "Charcoal"; $this->name = "Charcoal";
} }