mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
Merge branch 'main' into heightmaps
This commit is contained in:
commit
7da8e133a5
5 changed files with 22 additions and 22 deletions
|
|
@ -39,7 +39,6 @@ LevelController* scripting::controller = nullptr;
|
|||
static void load_script(const fs::path& name, bool throwable) {
|
||||
auto paths = scripting::engine->getPaths();
|
||||
fs::path file = paths->getResourcesFolder() / fs::path("scripts") / name;
|
||||
|
||||
std::string src = files::read_string(file);
|
||||
auto L = lua::get_main_thread();
|
||||
lua::loadbuffer(L, 0, src, file.u8string());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue