From c092ca82d2dbbd4ad58a1d988d7a6cf4a86131af Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Tue, 6 Jun 2023 19:22:18 +0300 Subject: [PATCH] fixed php5 --- src/structure/Structure.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/structure/Structure.php b/src/structure/Structure.php index 80a1eef1..b1dbca31 100644 --- a/src/structure/Structure.php +++ b/src/structure/Structure.php @@ -95,7 +95,8 @@ abstract class Structure{ return $this; } //var_dump($str); - return (clone $this)->setStructure($str, $this->width, $this->length); + $s = (clone $this); + return $s->setStructure($str, $this->width, $this->length); } private function setStructure($struct, $width, $length){