rename Level.chunksStorage to Level.chunks

This commit is contained in:
MihailRis
2024-12-17 23:57:00 +03:00
parent 70370904db
commit 48d94036fd
14 changed files with 46 additions and 51 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ static int l_open_block(lua::State* L) {
auto z = lua::tointeger(L, 3);
bool playerInventory = !lua::toboolean(L, 4);
auto vox = blocks_agent::get(*level->chunksStorage, x, y, z);
auto vox = blocks_agent::get(*level->chunks, x, y, z);
if (vox == nullptr) {
throw std::runtime_error(
"block does not exists at " + std::to_string(x) + " " +