mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +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
|
|
@ -742,7 +742,7 @@ void scripting::load_entity_component(
|
|||
std::string src = io::read_string(file);
|
||||
logger.info() << "script (component) " << file.string();
|
||||
lua::loadbuffer(L, *env, src, fileName);
|
||||
lua::store_in(L, lua::CHUNKS_TABLE, name);
|
||||
lua::store_in_registry(L, lua::CHUNKS_TABLE, name);
|
||||
}
|
||||
|
||||
void scripting::load_world_script(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue