Endless world, still some bugs to figure out

This commit is contained in:
Piotrek
2021-05-14 19:54:46 +02:00
parent e6329d568c
commit 00c518b9c1
9 changed files with 91 additions and 60 deletions
+1
View File
@@ -81,6 +81,7 @@ impl World {
pub fn load_chunk(&mut self, pos: Vector3<i32>) ->bool {
// Abort if chunk is already loaded
if let Some(_) = self.chunks.get(&pos) {
println!("Chunk at {:?} already loaded", pos);
return false;
}