mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Replaced array() with []
This commit is contained in:
@ -25,7 +25,7 @@ namespace pocketmine\block;
|
||||
class Wool extends Solid{
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(self::WOOL, $meta, "Wool");
|
||||
$names = array(
|
||||
$names = [
|
||||
0 => "White Wool",
|
||||
1 => "Orange Wool",
|
||||
2 => "Magenta Wool",
|
||||
@ -42,7 +42,7 @@ class Wool extends Solid{
|
||||
13 => "Green Wool",
|
||||
14 => "Red Wool",
|
||||
15 => "Black Wool",
|
||||
);
|
||||
];
|
||||
$this->name = $names[$this->meta];
|
||||
$this->hardness = 4;
|
||||
}
|
||||
|
Reference in New Issue
Block a user