mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Sign: remove obsolete clone hook
this is no longer required because SignText is not mutable anymore.
This commit is contained in:
@@ -59,11 +59,6 @@ class Sign extends Transparent{
|
||||
$this->text = new SignText();
|
||||
}
|
||||
|
||||
public function __clone(){
|
||||
parent::__clone();
|
||||
$this->text = clone $this->text;
|
||||
}
|
||||
|
||||
public function getId() : int{
|
||||
return $this->facing === Facing::UP ? parent::getId() : $this->idInfo->getSecondId();
|
||||
}
|
||||
|
Reference in New Issue
Block a user