mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Cleaned up some copy-pasted code for coloured blocks names
This commit is contained in:
@ -46,10 +46,9 @@ class Sandstone extends Solid{
|
||||
static $names = [
|
||||
self::NORMAL => "Sandstone",
|
||||
self::CHISELED => "Chiseled Sandstone",
|
||||
self::SMOOTH => "Smooth Sandstone",
|
||||
3 => "",
|
||||
self::SMOOTH => "Smooth Sandstone"
|
||||
];
|
||||
return $names[$this->meta & 0x03];
|
||||
return $names[$this->meta & 0x03] ?? "Unknown";
|
||||
}
|
||||
|
||||
public function getToolType(){
|
||||
|
Reference in New Issue
Block a user