mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Added all block hardness
This commit is contained in:
@ -36,7 +36,7 @@ class Ice extends Transparent{
|
||||
}
|
||||
|
||||
public function getHardness(){
|
||||
return 2.5;
|
||||
return 0.5;
|
||||
}
|
||||
|
||||
public function onBreak(Item $item){
|
||||
@ -45,23 +45,6 @@ class Ice extends Transparent{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getBreakTime(Item $item){
|
||||
switch($item->isPickaxe()){
|
||||
case 5:
|
||||
return 0.1;
|
||||
case 4:
|
||||
return 0.15;
|
||||
case 3:
|
||||
return 0.2;
|
||||
case 2:
|
||||
return 0.1;
|
||||
case 1:
|
||||
return 0.4;
|
||||
default:
|
||||
return 0.75;
|
||||
}
|
||||
}
|
||||
|
||||
public function getDrops(Item $item){
|
||||
return [];
|
||||
}
|
||||
|
Reference in New Issue
Block a user