mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Corrected block metadata
This commit is contained in:
parent
bbd113692e
commit
34db027ffd
10 changed files with 25 additions and 24 deletions
|
|
@ -26,8 +26,8 @@ the Free Software Foundation, either version 3 of the License, or
|
|||
*/
|
||||
|
||||
class WoolBlock extends SolidBlock{
|
||||
public function __construct($type = 0){
|
||||
parent::__construct(WOOL, $type, "Wool");
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(WOOL, $meta, "Wool");
|
||||
$names = array(
|
||||
0 => "White Wool",
|
||||
1 => "Orange Wool",
|
||||
|
|
@ -46,7 +46,7 @@ class WoolBlock extends SolidBlock{
|
|||
14 => "Red Wool",
|
||||
15 => "Black Wool",
|
||||
);
|
||||
$this->name = $names[$this->type];
|
||||
$this->name = $names[$this->meta];
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue