Merge branch 'main' into heightmaps

This commit is contained in:
MihailRis 2024-08-20 22:01:36 +03:00
commit 9eea7243d5
5 changed files with 7 additions and 7 deletions

View file

@ -360,7 +360,7 @@ static int l_raycast(lua::State* L) {
for (int i = 0; i < addLen; i++) {
lua::rawgeti(L, i + 1, 5);
auto blockName = std::string(lua::tostring(L, -1));
Block* block = content->blocks.find(blockName);
const Block* block = content->blocks.find(blockName);
if (block != nullptr) {
filteredBlocks.insert(block->rt.id);
}

View file

@ -127,7 +127,7 @@ static int l_raycast(lua::State* L) {
for (int i = 0; i < addLen; i++) {
lua::rawgeti(L, i + 1, 6);
auto blockName = std::string(lua::tostring(L, -1));
Block* block = content->blocks.find(blockName);
const Block* block = content->blocks.find(blockName);
if (block != nullptr) {
filteredBlocks.insert(block->rt.id);
}