diff --git a/src/world/format/LightArray.php b/src/world/format/LightArray.php index 1b10eb489..cbe7cd25f 100644 --- a/src/world/format/LightArray.php +++ b/src/world/format/LightArray.php @@ -92,4 +92,9 @@ final class LightArray{ public function getData() : string{ return $this->data; } + + public function __wakeup(){ + //const refs aren't preserved when unserializing + $this->collectGarbage(); + } }