resource: make seagrass opaque

See changelog for rationale.
This commit is contained in:
Matthias Schiffer 2025-02-28 16:16:29 +01:00
parent b8a5d1580b
commit 7686996fd3
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
4 changed files with 12 additions and 5 deletions

View file

@ -49,6 +49,13 @@
This should have no noticable effect on the usage of MinedMap, but avoids
an external build dependency on CMake.
- Small (1-block) seagrass is now visible on the map
1-block seagrass in 1-block deep water would previously result in the ground
to be shown instead of water, as MinedMap currently doesn't handle the
"waterlogged" block status. As 1-block seagrass is relatively big compared to
other "small" plants, just considering it opaque seems like a good enough
solution that avoids having to implement advanced block status flags.
## [2.4.0] - 2025-01-11

View file

@ -8692,8 +8692,8 @@ pub const BLOCK_TYPES: &[(&str, ConstBlockType)] = &[
"seagrass",
ConstBlockType {
block_color: BlockColor {
flags: make_bitflags!(BlockFlag::{}),
color: Color([0, 0, 0]),
flags: make_bitflags!(BlockFlag::{Opaque}),
color: Color([50, 126, 8]),
},
sign_material: None,
},

View file

@ -1781,7 +1781,7 @@
"sculk_vein": {},
"sea_lantern": {},
"sea_pickle": {},
"seagrass": null,
"seagrass": {},
"short_grass": null,
"shroomlight": {},
"shulker_box": {},

View file

@ -25,7 +25,7 @@ use crate::{
///
/// Increase when the generation of processed regions from region data changes
/// (usually because of updated resource data)
pub const REGION_FILE_META_VERSION: FileMetaVersion = FileMetaVersion(4);
pub const REGION_FILE_META_VERSION: FileMetaVersion = FileMetaVersion(5);
/// MinedMap map tile data version number
///
@ -37,7 +37,7 @@ pub const MAP_FILE_META_VERSION: FileMetaVersion = FileMetaVersion(0);
///
/// Increase when the generation of lightmap tiles from region data changes
/// (usually because of updated resource data)
pub const LIGHTMAP_FILE_META_VERSION: FileMetaVersion = FileMetaVersion(3);
pub const LIGHTMAP_FILE_META_VERSION: FileMetaVersion = FileMetaVersion(4);
/// MinedMap mipmap data version number
///