Skip to content

Instantly share code, notes, and snippets.

@bnoordhuis
Created September 3, 2013 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bnoordhuis/979c930bc82aad3a103b to your computer and use it in GitHub Desktop.
Save bnoordhuis/979c930bc82aad3a103b to your computer and use it in GitHub Desktop.
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