move $L, $C tables to registry

This commit is contained in:
MihailRis 2026-04-19 23:41:11 +03:00
parent 84a47b9298
commit 66413531ff
5 changed files with 94 additions and 40 deletions

View file

@ -94,7 +94,7 @@ static void create_component(
auto compenv = create_component_environment(
std::move(parentEnv), -1, component.name
);
lua::get_from(L, lua::CHUNKS_TABLE, component.name, true);
lua::get_from_registry(L, lua::CHUNKS_TABLE, component.name, true);
lua::pushenv(L, *compenv);
if (args != nullptr) {