mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Block: Clean up internal constructor inconsistencies
I don't dare look how big this commit is or how many bugs it introduced...
This commit is contained in:
@ -27,9 +27,8 @@ use pocketmine\item\Item;
|
||||
|
||||
class UnknownBlock extends Transparent{
|
||||
|
||||
public function __construct(int $id, int $meta = 0){
|
||||
$this->id = $id;
|
||||
$this->variant = $meta;
|
||||
public function __construct(BlockIdentifier $idInfo){
|
||||
parent::__construct($idInfo, "Unknown");
|
||||
}
|
||||
|
||||
public function canBePlaced() : bool{
|
||||
|
Reference in New Issue
Block a user