mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 03:16:35 +00:00
Air: use BlockBreakInfo::indestructible()
This commit is contained in:
parent
9e72bc91a2
commit
01ad568256
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user