From a644b46ec48a2c70e311b5cb384cf34e93ce5697 Mon Sep 17 00:00:00 2001 From: Alejandro Liu Date: Mon, 9 Mar 2015 23:57:53 +0100 Subject: [PATCH] Fixed some typos --- src/pocketmine/level/format/generic/BaseChunk.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pocketmine/level/format/generic/BaseChunk.php b/src/pocketmine/level/format/generic/BaseChunk.php index 70f5fd328..74be57f9b 100644 --- a/src/pocketmine/level/format/generic/BaseChunk.php +++ b/src/pocketmine/level/format/generic/BaseChunk.php @@ -141,7 +141,7 @@ abstract class BaseChunk extends BaseFullChunk implements Chunk{ public function setBlockSkyLight($x, $y, $z, $data){ try{ - $this->sections[$y >> 4]->getBlockSkyLight($x, $y & 0x0f, $z, $data); + $this->sections[$y >> 4]->setBlockSkyLight($x, $y & 0x0f, $z, $data); $this->hasChanged = true; }catch(ChunkException $e){ $level = $this->getProvider(); @@ -151,12 +151,12 @@ abstract class BaseChunk extends BaseFullChunk implements Chunk{ } public function getBlockLight($x, $y, $z){ - return $this->sections[$y >> 4]->getBlockSkyLight($x, $y & 0x0f, $z); + return $this->sections[$y >> 4]->getBlockLight($x, $y & 0x0f, $z); } public function setBlockLight($x, $y, $z, $data){ try{ - $this->sections[$y >> 4]->getBlockSkyLight($x, $y & 0x0f, $z, $data); + $this->sections[$y >> 4]->setBlockLight($x, $y & 0x0f, $z, $data); $this->hasChanged = true; }catch(ChunkException $e){ $level = $this->getProvider();