Corrected block metadata

This commit is contained in:
Shoghi Cervantes Pueyo
2013-02-02 15:53:22 +01:00
parent bbd113692e
commit 34db027ffd
10 changed files with 25 additions and 24 deletions

View File

@ -26,14 +26,14 @@ the Free Software Foundation, either version 3 of the License, or
*/
class LeavesBlock extends TransparentBlock{
public function __construct($type = 0){
parent::__construct(LEAVES, $type, "Leaves");
public function __construct($meta = 0){
parent::__construct(LEAVES, $meta, "Leaves");
$names = array(
0 => "Oak Leaves",
1 => "Spruce Leaves",
2 => "Birch Leaves",
);
$this->name = $names[$this->type & 0x03];
$this->name = $names[$this->meta & 0x03];
}
}