mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
inventory regions, minor refactor
This commit is contained in:
parent
a57fba4fa4
commit
49fdcdfb27
29 changed files with 259 additions and 160 deletions
|
|
@ -107,7 +107,7 @@ ubyte Chunks::getLight(int x, int y, int z, int channel){
|
|||
int lx = x - cx * CHUNK_W;
|
||||
int ly = y - cy * CHUNK_H;
|
||||
int lz = z - cz * CHUNK_D;
|
||||
return chunk->lightmap->get(lx,ly,lz, channel);
|
||||
return chunk->lightmap.get(lx,ly,lz, channel);
|
||||
}
|
||||
|
||||
light_t Chunks::getLight(int x, int y, int z){
|
||||
|
|
@ -124,7 +124,7 @@ light_t Chunks::getLight(int x, int y, int z){
|
|||
int lx = x - cx * CHUNK_W;
|
||||
int ly = y - cy * CHUNK_H;
|
||||
int lz = z - cz * CHUNK_D;
|
||||
return chunk->lightmap->get(lx,ly,lz);
|
||||
return chunk->lightmap.get(lx,ly,lz);
|
||||
}
|
||||
|
||||
Chunk* Chunks::getChunkByVoxel(int x, int y, int z){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue