mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
stdlib.lua load_script fix
This commit is contained in:
parent
f88623ddd6
commit
1f3d1e2640
2 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -94,8 +94,6 @@ void EnginePaths::setContentPacks(std::vector<ContentPack>* contentPacks) {
|
|||
this->contentPacks = contentPacks;
|
||||
}
|
||||
|
||||
#include <iostream>
|
||||
|
||||
static fs::path toCanonic(fs::path path) {
|
||||
std::stack<std::string> parts;
|
||||
path = path.lexically_normal();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue