mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-28 14:19:53 +00:00
Added Red sand
This commit is contained in:
parent
2d5e98b6a3
commit
6722540bdc
@ -23,8 +23,11 @@ namespace pocketmine\block;
|
|||||||
|
|
||||||
|
|
||||||
class Sand extends Fallable{
|
class Sand extends Fallable{
|
||||||
public function __construct(){
|
public function __construct($meta = 0){
|
||||||
parent::__construct(self::SAND, 0, "Sand");
|
parent::__construct(self::SAND, $meta & 0x01, "Sand");
|
||||||
|
if($this->meta === 0x01){
|
||||||
|
$this->name = "Red sand";
|
||||||
|
}
|
||||||
$this->hardness = 2.5;
|
$this->hardness = 2.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user