update component lua short name

This commit is contained in:
MihailRis 2024-07-24 15:17:30 +03:00
parent e8a8fb3d60
commit 2ec6c8b540

View File

@ -571,7 +571,7 @@ void scripting::load_entity_component(const std::string& name, const fs::path& f
auto L = lua::get_main_thread();
std::string src = files::read_string(file);
logger.info() << "script (component) " << file.u8string();
lua::loadbuffer(L, 0, src, file.u8string());
lua::loadbuffer(L, 0, src, "C!"+name);
lua::store_in(L, lua::CHUNKS_TABLE, name);
}