ContentPackRuntime + refactor

This commit is contained in:
MihailRis
2024-02-08 20:53:12 +03:00
parent 54e6d49847
commit 241d15e349
22 changed files with 224 additions and 169 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ ubyte* Chunk::encode() const {
return buffer;
}
bool Chunk::decode(ubyte* data) {
bool Chunk::decode(const ubyte* data) {
for (uint i = 0; i < CHUNK_VOL; i++) {
voxel& vox = voxels[i];