mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 15:05:33 +00:00
Fixed obsidian hardness, no more destroying obsidian with TNT
This commit is contained in:
parent
ebda6ec19b
commit
80f2519d7d
@ -40,4 +40,11 @@ class GlowingObsidian extends Solid{
|
||||
return 12;
|
||||
}
|
||||
|
||||
public function getHardness() : float{
|
||||
return 10;
|
||||
}
|
||||
|
||||
public function getBlastResistance() : float{
|
||||
return 50;
|
||||
}
|
||||
}
|
@ -46,6 +46,10 @@ class Obsidian extends Solid{
|
||||
return 35; //50 in PC
|
||||
}
|
||||
|
||||
public function getBlastResistance() : float{
|
||||
return 6000;
|
||||
}
|
||||
|
||||
public function getDrops(Item $item) : array{
|
||||
if($item->isPickaxe() >= Tool::TIER_DIAMOND){
|
||||
return parent::getDrops($item);
|
||||
@ -53,4 +57,6 @@ class Obsidian extends Solid{
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user