mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +00:00
Fixed some typos
This commit is contained in:
parent
9d3f59fab6
commit
a644b46ec4
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user