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

@ -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(