mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
some block fixes
This commit is contained in:
parent
d6cf7d2d52
commit
f2c1329ce5
7 changed files with 301 additions and 294 deletions
|
|
@ -1,8 +1,17 @@
|
|||
<?php
|
||||
|
||||
class StoneBlock extends SolidBlock{
|
||||
public function __construct(){
|
||||
parent::__construct(STONE, 0, "Stone");
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(STONE, $meta, "Stone");
|
||||
$names = array(
|
||||
1 => "Granite",
|
||||
2 => "Polished Granite",
|
||||
3 => "Diorite",
|
||||
4 => "Polished Diorite",
|
||||
5 => "Andesite",
|
||||
6 => "Polished Andesite",
|
||||
);
|
||||
$this->name = $names[$this->meta];
|
||||
$this->hardness = 30;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue