New world format, fixes

This commit is contained in:
MihailRis 2023-11-05 15:32:46 +03:00 • committed by GitHub
parent 0c65b13f4e
commit 0cf8382e95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 350 additions and 173 deletions

View file

@ -20,8 +20,9 @@ void initialize_assets(AssetsLoader* loader) {
// All in-game definitions (blocks, items, etc..)
void setup_definitions() {
for (size_t i = 0; i < 256; i++)
for (size_t i = 0; i < 256; i++) {
Block::blocks[i] = nullptr;
}
Block* block = new Block(BLOCK_AIR, 0);
block->drawGroup = 1;