From 2bb497b7162719507184e0e3a36027cedd7bbe29 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 11 Feb 2020 08:26:12 +0000 Subject: [PATCH] Chunk: flag hasChanged when changing generated/populated/light-populated flags --- src/pocketmine/level/format/Chunk.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pocketmine/level/format/Chunk.php b/src/pocketmine/level/format/Chunk.php index 1d7e294ac..c5989a934 100644 --- a/src/pocketmine/level/format/Chunk.php +++ b/src/pocketmine/level/format/Chunk.php @@ -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; } /**