mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
fixed some names
This commit is contained in:
parent
63ef7c628c
commit
8248088c29
6 changed files with 74 additions and 66 deletions
|
|
@ -1,18 +1,19 @@
|
|||
<?php
|
||||
|
||||
class StoneBlock extends SolidBlock{
|
||||
|
||||
protected static $names = [
|
||||
0 => "Stone",
|
||||
1 => "Granite",
|
||||
2 => "Polished Granite",
|
||||
3 => "Diorite",
|
||||
4 => "Polished Diorite",
|
||||
5 => "Andesite",
|
||||
6 => "Polished Andesite",
|
||||
];
|
||||
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(STONE, $meta, "Stone");
|
||||
$names = array(
|
||||
0 => "Stone",
|
||||
1 => "Granite",
|
||||
2 => "Polished Granite",
|
||||
3 => "Diorite",
|
||||
4 => "Polished Diorite",
|
||||
5 => "Andesite",
|
||||
6 => "Polished Andesite",
|
||||
);
|
||||
$this->name = $names[$this->meta & 0x06];
|
||||
parent::__construct(STONE, $meta, nullsafe(self::$names[$meta], "Stone"));
|
||||
$this->hardness = 30;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue