This commit is contained in:
Joshua Barretto 2021-06-30 18:18:13 +01:00
parent ac9187002b
commit 34a15d1bf8
2 changed files with 4 additions and 2 deletions

View File

@ -557,7 +557,7 @@ impl<const AVERAGE_PALETTE: bool> VoxelImageDecoding for TriPngEncoding<AVERAGE_
} else { } else {
use BlockKind::*; use BlockKind::*;
match kind { match kind {
Air | Water | Lava | GlowingRock => Rgb { r: 0, g: 0, b: 0 }, Air | Water | Lava => Rgb { r: 0, g: 0, b: 0 },
Rock => Rgb { Rock => Rgb {
r: 93, r: 93,
g: 110, g: 110,

View File

@ -110,9 +110,11 @@ impl<'a> CanvasInfo<'a> {
cave: Default::default(), cave: Default::default(),
cliff_height: 0.0, cliff_height: 0.0,
contains_waypoint: false, contains_waypoint: false,
spot: None,
}; };
f(&CanvasInfo { f(&CanvasInfo {
wpos: Vec2::broadcast(0), chunk_pos: Vec2::zero(),
wpos: Vec2::zero(),
column_grid: &zcache_grid, column_grid: &zcache_grid,
column_grid_border: 0, column_grid_border: 0,
chunks: &sim, chunks: &sim,