mirror of
https://github.com/Relintai/godot_voxel.git
synced 2024-11-19 02:47:18 +01:00
Fix wrong block size mask value
This commit is contained in:
parent
dc4f0c5cd1
commit
6b3f16e699
@ -25,7 +25,7 @@ void VoxelMap::set_block_size_pow2(unsigned int p) {
|
||||
|
||||
_block_size_pow2 = p;
|
||||
_block_size = 1 << _block_size_pow2;
|
||||
_block_size_mask = _block_size_pow2 - 1;
|
||||
_block_size_mask = _block_size - 1;
|
||||
}
|
||||
|
||||
int VoxelMap::get_voxel(Vector3i pos, unsigned int c) {
|
||||
|
Loading…
Reference in New Issue
Block a user