Air: use BlockBreakInfo::indestructible()

This commit is contained in:
Dylan K. Taylor 2019-05-10 16:30:14 +01:00
parent 9e72bc91a2
commit 01ad568256

View File

@ -31,7 +31,7 @@ use pocketmine\math\AxisAlignedBB;
class Air extends Transparent{
public function __construct(BlockIdentifier $idInfo, string $name, ?BlockBreakInfo $breakInfo = null){
parent::__construct($idInfo, $name, $breakInfo ?? new BlockBreakInfo(-1.0, BlockToolType::TYPE_NONE, 0, 0.0));
parent::__construct($idInfo, $name, $breakInfo ?? BlockBreakInfo::indestructible(0.0));
}
public function canBeFlowedInto() : bool{