mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Consistently declare BlockBreakInfo at the constructor call site
instead of inside the class
This commit is contained in:
@ -27,8 +27,8 @@ use pocketmine\item\Item;
|
||||
|
||||
class UnknownBlock extends Transparent{
|
||||
|
||||
public function __construct(BlockIdentifier $idInfo, ?BlockBreakInfo $breakInfo = null){
|
||||
parent::__construct($idInfo, "Unknown", $breakInfo ?? BlockBreakInfo::instant());
|
||||
public function __construct(BlockIdentifier $idInfo, BlockBreakInfo $breakInfo){
|
||||
parent::__construct($idInfo, "Unknown", $breakInfo);
|
||||
}
|
||||
|
||||
public function canBePlaced() : bool{
|
||||
|
Reference in New Issue
Block a user