msvc build fix

This commit is contained in:
MihailRis 2023-12-30 00:35:42 +03:00
parent d2ace01c07
commit 71fdd4b63e

View File

@ -38,7 +38,7 @@ void ContentLoader::fixPackIndices() {
for (auto entry : fs::directory_iterator(blocksFolder)) {
fs::path file = entry.path();
if (fs::is_regular_file(file) && file.extension() == ".json") {
std::string name = file.stem();
std::string name = file.stem().string();
if (name[0] == '_')
continue;
detectedBlocks.push_back(name);