mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add 'nonselect_blocks' parameter
This commit is contained in:
parent
f29f3b1bba
commit
baa952a172
1 changed files with 4 additions and 0 deletions
|
|
@ -291,6 +291,10 @@ static int l_raycast(lua::State* L) {
|
|||
load_blocks_filter(L, -1, filteredBlocks);
|
||||
lua::pop(L);
|
||||
}
|
||||
if (lua::getfield(L, "nonselect_blocks", 1)) {
|
||||
blocksRaycast.includeNonSelectable = lua::toboolean(L, -1);
|
||||
lua::pop(L);
|
||||
}
|
||||
} else {
|
||||
start = lua::tovec<3>(L, 1);
|
||||
dir = lua::tovec<3>(L, 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue