mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 03:06:55 +00:00
Separate block break-info to a separate dynamic unit
This commit is contained in:
@ -25,7 +25,7 @@ namespace pocketmine\block;
|
||||
|
||||
class HardenedGlassPane extends Thin{
|
||||
|
||||
public function getHardness() : float{
|
||||
return 10;
|
||||
public function __construct(BlockIdentifier $idInfo, string $name, ?BlockBreakInfo $breakInfo = null){
|
||||
parent::__construct($idInfo, $name, $breakInfo ?? new BlockBreakInfo(10.0));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user