mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
reduce redundancy
This commit is contained in:
parent
5874abff98
commit
8edf9440a3
4 changed files with 5 additions and 6 deletions
|
|
@ -359,7 +359,7 @@ void ContentLoader::loadEntity(EntityDef& def, const std::string& full, const st
|
|||
for (auto& componentName : def.components) {
|
||||
auto scriptfile = folder/fs::path("scripts/components/"+componentName+".lua");
|
||||
if (fs::is_regular_file(scriptfile)) {
|
||||
scripting::load_entity_component(env, componentName, scriptfile);
|
||||
scripting::load_entity_component(componentName, scriptfile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue