mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
feat: load block and item scripts after content load
This commit is contained in:
parent
4c0c6dd51a
commit
a641099d36
5 changed files with 45 additions and 28 deletions
|
|
@ -361,8 +361,10 @@ void Engine::loadContent() {
|
|||
ContentLoader(&pack, contentBuilder, *resPaths).load();
|
||||
load_configs(pack.folder);
|
||||
}
|
||||
|
||||
content = contentBuilder.build();
|
||||
scripting::on_content_load(content.get());
|
||||
|
||||
ContentLoader::loadScripts(*content);
|
||||
|
||||
langs::setup(resdir, langs::current->getId(), contentPacks);
|
||||
loadAssets();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue