mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Fixed BlockFactory corruption with signs and banners
This commit is contained in:
parent
3f66600271
commit
2b6a62be77
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user