mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Make block constructors not write to this->meta directly
This commit is contained in:
@ -36,7 +36,7 @@ class EnchantingTable extends Transparent{
|
||||
protected $id = self::ENCHANTING_TABLE;
|
||||
|
||||
public function __construct(int $meta = 0){
|
||||
$this->meta = $meta;
|
||||
$this->setDamage($meta);
|
||||
}
|
||||
|
||||
public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, Player $player = null) : bool{
|
||||
|
Reference in New Issue
Block a user