Replaced array() with []

This commit is contained in:
Shoghi Cervantes
2014-08-28 17:04:22 +02:00
parent 2f2afe2336
commit eab86f5f90
122 changed files with 535 additions and 533 deletions

View File

@ -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;
}