Fixed BlockFactory corruption with signs and banners

This commit is contained in:
Dylan K. Taylor 2019-03-05 15:32:06 +00:00
parent 3f66600271
commit 2b6a62be77
2 changed files with 8 additions and 0 deletions

View File

@ -49,6 +49,10 @@ class SignPost extends Transparent{
$this->text = new SignText();
}
public function __clone(){
$this->text = clone $this->text;
}
protected function writeStateToMeta() : int{
return $this->rotation;
}

View File

@ -54,6 +54,10 @@ class StandingBanner extends Transparent{
$this->patterns = new Deque();
}
public function __clone(){
$this->patterns = $this->patterns->map(function(BannerPattern $pattern) : BannerPattern{ return clone $pattern; });
}
protected function writeStateToMeta() : int{
return $this->rotation;
}