mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 10:01:53 +00:00
Make sure tag exists, prevent issues with bad world conversion
Addresses @legoboy0215's comments on #212
This commit is contained in:
parent
efc6d429f6
commit
25b9581254
@ -248,7 +248,7 @@ class Chunk extends BaseFullChunk{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function isLightPopulated(){
|
public function isLightPopulated(){
|
||||||
return $this->nbt["LightPopulated"] > 0;
|
return isset($this->nbt->LightPopulated) and $this->nbt->LightPopulated->getValue() > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setLightPopulated($value = 1){
|
public function setLightPopulated($value = 1){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user