Merge pull request #2767 from alejandroliu/blockskylight

Fixed some typos in Anvil
This commit is contained in:
Shoghi Cervantes 2015-03-10 09:57:48 +01:00
commit 9ca3ad8971

View File

@ -141,7 +141,7 @@ abstract class BaseChunk extends BaseFullChunk implements Chunk{
public function setBlockSkyLight($x, $y, $z, $data){ public function setBlockSkyLight($x, $y, $z, $data){
try{ try{
$this->sections[$y >> 4]->getBlockSkyLight($x, $y & 0x0f, $z, $data); $this->sections[$y >> 4]->setBlockSkyLight($x, $y & 0x0f, $z, $data);
$this->hasChanged = true; $this->hasChanged = true;
}catch(ChunkException $e){ }catch(ChunkException $e){
$level = $this->getProvider(); $level = $this->getProvider();
@ -151,12 +151,12 @@ abstract class BaseChunk extends BaseFullChunk implements Chunk{
} }
public function getBlockLight($x, $y, $z){ 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){ public function setBlockLight($x, $y, $z, $data){
try{ try{
$this->sections[$y >> 4]->getBlockSkyLight($x, $y & 0x0f, $z, $data); $this->sections[$y >> 4]->setBlockLight($x, $y & 0x0f, $z, $data);
$this->hasChanged = true; $this->hasChanged = true;
}catch(ChunkException $e){ }catch(ChunkException $e){
$level = $this->getProvider(); $level = $this->getProvider();