mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
move $L, $C tables to registry
This commit is contained in:
parent
84a47b9298
commit
66413531ff
5 changed files with 94 additions and 40 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue