bug with +z was my stupid mistake :]
This commit is contained in:
@@ -42,8 +42,6 @@ impl WorldGen {
|
|||||||
* Generate block
|
* Generate block
|
||||||
*/
|
*/
|
||||||
pub fn generate(block_pos: &Vector3<i32>, block: &mut WorldBlock) {
|
pub fn generate(block_pos: &Vector3<i32>, block: &mut WorldBlock) {
|
||||||
if block_pos.z > 32 as i32 { return; }
|
|
||||||
|
|
||||||
let mut rng = rand::thread_rng();
|
let mut rng = rand::thread_rng();
|
||||||
let noise = Perlin::new();
|
let noise = Perlin::new();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user