mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Separate block break-info to a separate dynamic unit
This commit is contained in:
@ -31,8 +31,8 @@ use pocketmine\Player;
|
||||
|
||||
class WaterLily extends Flowable{
|
||||
|
||||
public function getHardness() : float{
|
||||
return 0.6;
|
||||
public function __construct(BlockIdentifier $idInfo, string $name, ?BlockBreakInfo $breakInfo = null){
|
||||
parent::__construct($idInfo, $name, $breakInfo ?? new BlockBreakInfo(0.6));
|
||||
}
|
||||
|
||||
protected function recalculateBoundingBox() : ?AxisAlignedBB{
|
||||
|
Reference in New Issue
Block a user