mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-04 17:23:33 +01:00
core/region_processor: sort processed block entities
Make the block entity list more reproducible when the stored chunk order changes.
This commit is contained in:
parent
e36ae4601d
commit
7740ce0522
1 changed files with 3 additions and 1 deletions
|
@ -195,11 +195,13 @@ impl<'a> SingleRegionProcessor<'a> {
|
|||
/// Saves processed entity data
|
||||
///
|
||||
/// The timestamp is the time of the last modification of the input region data.
|
||||
fn save_entities(&self) -> Result<()> {
|
||||
fn save_entities(&mut self) -> Result<()> {
|
||||
if !self.entities_needed {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
self.entities.block_entities.sort_unstable();
|
||||
|
||||
storage::write_file(
|
||||
&self.entities_path,
|
||||
&self.entities,
|
||||
|
|
Loading…
Add table
Reference in a new issue