mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
goodbye php5, u wont be missed
This commit is contained in:
parent
2858b43748
commit
d7d346a237
16 changed files with 26 additions and 33 deletions
|
|
@ -13,7 +13,7 @@ class CyanFlowerBlock extends FlowableBlock{
|
|||
8 => "Oxeye Daisy",
|
||||
];
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(CYAN_FLOWER, $meta, nullsafe(self::$names[$meta], "Poppy"));
|
||||
parent::__construct(CYAN_FLOWER, $meta, self::$names[$meta] ?? "Poppy");
|
||||
$this->hardness = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ class StoneBlock extends SolidBlock{
|
|||
];
|
||||
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(STONE, $meta, nullsafe(self::$names[$meta], "Stone"));
|
||||
parent::__construct(STONE, $meta, self::$names[$meta] ?? "Stone");
|
||||
$this->hardness = 30;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class WoolBlock extends SolidBlock{
|
|||
);
|
||||
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(WOOL, $meta, nullsafe(self::$names[$meta], "Wool"));
|
||||
parent::__construct(WOOL, $meta, self::$names[$meta] ?? "Wool");
|
||||
$this->hardness = 4;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue