works
This commit is contained in:
@@ -32,10 +32,11 @@ impl World {
|
||||
// Generate block for chunk
|
||||
let chunk = self.chunks.get_mut(block_pos).unwrap();
|
||||
let block = chunk.get_block(&bl_pos);
|
||||
WorldGen::generate(block);
|
||||
WorldGen::generate(&bl_pos, block);
|
||||
block
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
pub fn get_block(&mut self, block_pos: &Point3<u32>) -> Option<&WorldBlock> {
|
||||
// Split world space to chunk and block space
|
||||
let ch_pos = block_pos / chunk::SIZE;
|
||||
|
||||
Reference in New Issue
Block a user