mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Chunk: flag hasChanged when changing generated/populated/light-populated flags
This commit is contained in:
parent
613bd40601
commit
2bb497b716
@ -548,6 +548,7 @@ class Chunk{
|
||||
*/
|
||||
public function setLightPopulated(bool $value = true){
|
||||
$this->lightPopulated = $value;
|
||||
$this->hasChanged = true;
|
||||
}
|
||||
|
||||
public function isPopulated() : bool{
|
||||
@ -559,6 +560,7 @@ class Chunk{
|
||||
*/
|
||||
public function setPopulated(bool $value = true){
|
||||
$this->terrainPopulated = $value;
|
||||
$this->hasChanged = true;
|
||||
}
|
||||
|
||||
public function isGenerated() : bool{
|
||||
@ -570,6 +572,7 @@ class Chunk{
|
||||
*/
|
||||
public function setGenerated(bool $value = true){
|
||||
$this->terrainGenerated = $value;
|
||||
$this->hasChanged = true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user