mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-28 06:09:57 +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{
|
||||
public function __construct(){
|
||||
parent::__construct(self::SAND, 0, "Sand");
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(self::SAND, $meta & 0x01, "Sand");
|
||||
if($this->meta === 0x01){
|
||||
$this->name = "Red sand";
|
||||
}
|
||||
$this->hardness = 2.5;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user