mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix entity component script source path in lua traceback
This commit is contained in:
parent
29d8c4bbb8
commit
f9f150f0aa
2 changed files with 2 additions and 2 deletions
|
|
@ -700,7 +700,7 @@ void scripting::load_entity_component(
|
|||
auto L = lua::get_main_state();
|
||||
std::string src = files::read_string(file);
|
||||
logger.info() << "script (component) " << file.u8string();
|
||||
lua::loadbuffer(L, 0, src, "C!" + name);
|
||||
lua::loadbuffer(L, 0, src, fileName);
|
||||
lua::store_in(L, lua::CHUNKS_TABLE, name);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue