Fixed some typos

This commit is contained in:
Alejandro Liu 2015-03-09 23:57:53 +01:00
parent 9d3f59fab6
commit a644b46ec4

View File

@ -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();