Skip to content

Commit

Permalink
Fixed setfenv not returning function
Browse files Browse the repository at this point in the history
  • Loading branch information
MCJack123 committed Jun 12, 2024
1 parent c819d6b commit 9b53fa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion craftos2-lua
Submodule craftos2-lua updated 1 files
+6 −8 src/lbaselib.c
2 changes: 1 addition & 1 deletion src/apis/fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ static int calculateDirectorySize(const path_t& path) {
std::error_code e;
for (const auto& dir : fs::directory_iterator(path, e)) {
if (dir.is_directory()) size += calculateDirectorySize(dir.path());
else size += dir.file_size();
else size += dir.file_size(e);
}
return size;
}
Expand Down

0 comments on commit 9b53fa9

Please sign in to comment.