mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
world.lua script
This commit is contained in:
parent
5d6c2b9b8e
commit
abc3e47feb
7 changed files with 68 additions and 2 deletions
|
|
@ -276,6 +276,12 @@ void ContentLoader::load(ContentBuilder* builder) {
|
|||
fixPackIndices();
|
||||
|
||||
auto folder = pack->folder;
|
||||
|
||||
fs::path scriptFile = folder/fs::path("scripts/world.lua");
|
||||
if (fs::is_regular_file(scriptFile)) {
|
||||
scripting::load_world_script(pack->id, scriptFile);
|
||||
}
|
||||
|
||||
if (!fs::is_regular_file(pack->getContentFile()))
|
||||
return;
|
||||
auto root = files::read_json(pack->getContentFile());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue