From 039d6a488a1b157341971c624f898f4ebf039965 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 17 Nov 2016 21:28:28 +0000 Subject: [PATCH] Fix lighting *facepalm* http://rmsnews.com/wp-content/uploads/2015/06/clavier-avec-uniquement-ctrl-c-et-ctrl-v.jpg --- src/pocketmine/level/format/generic/SubChunk.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/level/format/generic/SubChunk.php b/src/pocketmine/level/format/generic/SubChunk.php index 6fce6864d..5638f896c 100644 --- a/src/pocketmine/level/format/generic/SubChunk.php +++ b/src/pocketmine/level/format/generic/SubChunk.php @@ -195,11 +195,11 @@ class SubChunk{ public function getBlockLightArray() : string{ assert(strlen($this->blockLight) === 2048, "Wrong length of light array, expecting 2048 bytes, got " . strlen($this->blockLight)); - return $this->data; + return $this->blockLight; } public function getSkyLightArray() : string{ assert(strlen($this->skyLight) === 2048, "Wrong length of skylight array, expecting 2048 bytes, got " . strlen($this->skyLight)); - return $this->data; + return $this->skyLight; } } \ No newline at end of file