Sign: remove obsolete clone hook

this is no longer required because SignText is not mutable anymore.
This commit is contained in:
Dylan K. Taylor
2020-10-04 17:24:40 +01:00
parent 388a19ef5d
commit e6bf7278fc
2 changed files with 28 additions and 5 deletions

View File

@@ -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();
}