mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 05:55:33 +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){
|
public function setLightPopulated(bool $value = true){
|
||||||
$this->lightPopulated = $value;
|
$this->lightPopulated = $value;
|
||||||
|
$this->hasChanged = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isPopulated() : bool{
|
public function isPopulated() : bool{
|
||||||
@ -559,6 +560,7 @@ class Chunk{
|
|||||||
*/
|
*/
|
||||||
public function setPopulated(bool $value = true){
|
public function setPopulated(bool $value = true){
|
||||||
$this->terrainPopulated = $value;
|
$this->terrainPopulated = $value;
|
||||||
|
$this->hasChanged = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isGenerated() : bool{
|
public function isGenerated() : bool{
|
||||||
@ -570,6 +572,7 @@ class Chunk{
|
|||||||
*/
|
*/
|
||||||
public function setGenerated(bool $value = true){
|
public function setGenerated(bool $value = true){
|
||||||
$this->terrainGenerated = $value;
|
$this->terrainGenerated = $value;
|
||||||
|
$this->hasChanged = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user