mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
fix components parent environment
This commit is contained in:
parent
2afadb4ae6
commit
dcaf87988b
2 changed files with 21 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue