mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
inventory reindexing
This commit is contained in:
parent
1409df4b86
commit
51ffb93230
12 changed files with 174 additions and 51 deletions
|
|
@ -24,6 +24,8 @@ constexpr int CHUNK_VOL = (CHUNK_W * CHUNK_H * CHUNK_D);
|
|||
|
||||
/* BLOCK_VOID is block id used to mark non-existing voxel (voxel of missing chunk) */
|
||||
const blockid_t BLOCK_VOID = std::numeric_limits<blockid_t>::max();
|
||||
const itemid_t ITEM_VOID = std::numeric_limits<itemid_t>::max();
|
||||
|
||||
const blockid_t MAX_BLOCKS = BLOCK_VOID;
|
||||
|
||||
inline uint vox_index(int x, int y, int z, int w=CHUNK_W, int d=CHUNK_D) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue