mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Make block constructors not write to this->meta directly
This commit is contained in:
@ -28,7 +28,7 @@ class Pumpkin extends Solid{
|
||||
protected $id = self::PUMPKIN;
|
||||
|
||||
public function __construct(int $meta = 0){
|
||||
$this->meta = $meta;
|
||||
$this->setDamage($meta);
|
||||
}
|
||||
|
||||
public function getHardness() : float{
|
||||
|
Reference in New Issue
Block a user