mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Added all block hardness
This commit is contained in:
@ -32,7 +32,7 @@ class StainedClay extends Solid{
|
||||
}
|
||||
|
||||
public function getHardness(){
|
||||
return 30;
|
||||
return 1.25;
|
||||
}
|
||||
|
||||
public function getName(){
|
||||
@ -57,21 +57,4 @@ class StainedClay extends Solid{
|
||||
return $names[$this->meta & 0x0f];
|
||||
}
|
||||
|
||||
public function getBreakTime(Item $item){
|
||||
switch($item->isPickaxe()){
|
||||
case 5:
|
||||
return 0.25;
|
||||
case 4:
|
||||
return 0.35;
|
||||
case 3:
|
||||
return 0.5;
|
||||
case 2:
|
||||
return 0.2;
|
||||
case 1:
|
||||
return 0.95;
|
||||
default:
|
||||
return 6.25;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user