A lot of changes in almost all files

This commit is contained in:
MihailRis 2022-02-28 02:30:15 +03:00 • committed by GitHub
parent cd3e737385
commit bc9d29cf68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 3485 additions and 476 deletions

View file

@ -27,3 +27,11 @@ bool Chunk::isEmpty(){
}
return true;
}
Chunk* Chunk::clone() const {
Chunk* other = new Chunk(x,y,z);
for (int i = 0; i < CHUNK_VOL; i++)
other->voxels[i] = voxels[i];
other->lightmap->set(lightmap);
return other;
}