mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Applied water layer after structures layer
This commit is contained in:
parent
b6e72b0075
commit
5933ae608a
@ -380,8 +380,17 @@ impl<'a> BlockGen<'a> {
|
||||
let (st, st_sample) = st.as_ref()?;
|
||||
st.get(wpos, st_sample)
|
||||
})
|
||||
.or(block)
|
||||
.unwrap_or(Block::empty());
|
||||
.or(block);
|
||||
|
||||
// Water
|
||||
let block = block.or_else(|| {
|
||||
if (wposf.z as f32) < water_height {
|
||||
// Ocean
|
||||
Some(water)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
});
|
||||
|
||||
Some(block)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user