Skip to content

Instantly share code, notes, and snippets.

@bnoordhuis bnoordhuis/patsje.patch Secret
Created Sep 3, 2013

Embed
What would you like to do?
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
You can’t perform that action at this time.