fix components parent environment

This commit is contained in:
MihailRis 2026-04-19 22:04:40 +03:00
parent 2afadb4ae6
commit dcaf87988b
2 changed files with 21 additions and 1 deletions

View file

@ -114,6 +114,14 @@ struct ContentPack {
default: return "";
}
}
static std::string_view getPrefix(std::string_view path) {
size_t pos = path.find(':');
if (pos == std::string::npos) {
return "";
}
return path.substr(0, pos);
}
};
struct WorldFuncsSet {