mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 10:01:53 +00:00
Fixed Anvil/McRegion chunks getting autosaved on first time, even when unchanged
setGenerated/setPopulated and friends set hasChanged = true, which causes the world to autosave them the first time around, even though they weren't modified.
This commit is contained in:
parent
986b4e0651
commit
f6e53f826b
@ -135,6 +135,7 @@ class Anvil extends McRegion{
|
|||||||
$result->setLightPopulated($chunk->getByte("LightPopulated", 0) !== 0);
|
$result->setLightPopulated($chunk->getByte("LightPopulated", 0) !== 0);
|
||||||
$result->setPopulated($chunk->getByte("TerrainPopulated", 0) !== 0);
|
$result->setPopulated($chunk->getByte("TerrainPopulated", 0) !== 0);
|
||||||
$result->setGenerated();
|
$result->setGenerated();
|
||||||
|
$result->setChanged(false);
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -201,6 +201,7 @@ class McRegion extends BaseLevelProvider{
|
|||||||
$result->setLightPopulated($chunk->getByte("LightPopulated", 0) !== 0);
|
$result->setLightPopulated($chunk->getByte("LightPopulated", 0) !== 0);
|
||||||
$result->setPopulated($chunk->getByte("TerrainPopulated", 0) !== 0);
|
$result->setPopulated($chunk->getByte("TerrainPopulated", 0) !== 0);
|
||||||
$result->setGenerated(true);
|
$result->setGenerated(true);
|
||||||
|
$result->setChanged(false);
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user