minedmap/tile_renderer: keep HashSet of populated regions

Rather than attemping to read the file metadata, it's more elegant to
check whether a tile is supposed to be available first.
This commit is contained in:
Matthias Schiffer 2023-08-15 20:48:41 +02:00
parent 722fe00d77
commit 427a992897
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
3 changed files with 18 additions and 14 deletions

View file

@ -12,7 +12,7 @@ use minedmap::{io::fs::FileMetaVersion, resource::Biome, types::*, world::layer}
// Increase to force regeneration of all output files
pub const FILE_META_VERSION: FileMetaVersion = FileMetaVersion(0);
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct TileCoords {
pub x: i32,
pub z: i32,