mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-03 06:09:07 +02:00
Revert "minedmap: store region list in BTreeSet"
This reverts commit b53d34da3d
.
With the change of the mipmapper data structure, we need a conversion
step anyways, so we can keep using the Vec before mipmapping.
This commit is contained in:
parent
b63a18ad6f
commit
f9fc9efe8d
4 changed files with 10 additions and 12 deletions
|
@ -80,10 +80,10 @@ impl<'a> TileRenderer<'a> {
|
|||
})
|
||||
}
|
||||
|
||||
pub fn run(self, regions: impl IntoIterator<Item = TileCoords>) -> Result<()> {
|
||||
pub fn run(self, regions: &[TileCoords]) -> Result<()> {
|
||||
fs::create_dir_all(&self.config.tile_dir(TileKind::Map, 0))?;
|
||||
|
||||
for coords in regions {
|
||||
for &coords in regions {
|
||||
if let Err(err) = self.render_tile(coords) {
|
||||
eprintln!("Failed to render tile {:?}: {:?}", coords, err);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue