diff --git a/res/scripts/stdlib.lua b/res/scripts/stdlib.lua index b8dcfb47..370d4eef 100644 --- a/res/scripts/stdlib.lua +++ b/res/scripts/stdlib.lua @@ -37,7 +37,7 @@ function load_script(path, nocache) if not nocache and __cached_scripts[fullpath] ~= nil then return __cached_results[fullpath] end - if not file.isfile(fullpath) then + if not file.isfile(path) then error("script '"..filename.."' not found in '"..packname.."'") end diff --git a/src/files/engine_paths.cpp b/src/files/engine_paths.cpp index e8798f40..2f716f97 100644 --- a/src/files/engine_paths.cpp +++ b/src/files/engine_paths.cpp @@ -94,8 +94,6 @@ void EnginePaths::setContentPacks(std::vector* contentPacks) { this->contentPacks = contentPacks; } -#include - static fs::path toCanonic(fs::path path) { std::stack parts; path = path.lexically_normal();