-
-
Save bnoordhuis/979c930bc82aad3a103b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/common.h b/src/common.h | |
index 4b56e94..7109261 100644 | |
--- a/src/common.h | |
+++ b/src/common.h | |
@@ -353,15 +353,11 @@ struct mc_slot_s { | |
int allocated; | |
}; | |
-struct mc_block_s { | |
- mc_block_id_t id; | |
- uint8_t metadata; | |
- uint8_t light; | |
- uint8_t skylight; | |
-}; | |
- | |
struct mc_chunk_s { | |
- mc_block_t blocks[16][16][16]; | |
+ mc_block_id_t id[4096]; | |
+ uint8_t metadata[4096]; | |
+ uint8_t light[4096]; | |
+ uint8_t skylight[4096]; | |
}; | |
struct mc_column_s { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment