mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +00:00
Torches can now be crafted using charcoal
This commit is contained in:
parent
01f299a7f1
commit
9907e84eee
@ -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";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user