From 01ad568256f1da27dc0b034b2a9346c8b433f782 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 10 May 2019 16:30:14 +0100 Subject: [PATCH] Air: use BlockBreakInfo::indestructible() --- src/pocketmine/block/Air.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/block/Air.php b/src/pocketmine/block/Air.php index 995c68d0f..88f4063f0 100644 --- a/src/pocketmine/block/Air.php +++ b/src/pocketmine/block/Air.php @@ -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{