mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
edu: implement coloured and underwater torches
This commit is contained in:
@ -30,6 +30,10 @@ class RedstoneTorch extends Torch{
|
||||
/** @var bool */
|
||||
protected $lit = true;
|
||||
|
||||
public function __construct(){
|
||||
parent::__construct(self::REDSTONE_TORCH, 0, "Redstone Torch", self::REDSTONE_TORCH);
|
||||
}
|
||||
|
||||
public function getId() : int{
|
||||
return $this->lit ? self::REDSTONE_TORCH : self::UNLIT_REDSTONE_TORCH;
|
||||
}
|
||||
|
Reference in New Issue
Block a user