mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
ContentLUT fix
This commit is contained in:
parent
f513c094a9
commit
f1353c73a5
1 changed files with 6 additions and 0 deletions
|
|
@ -19,8 +19,14 @@ ContentLUT::ContentLUT(size_t blocksCount, const Content* content) {
|
|||
ContentIndices* indices = content->indices;
|
||||
for (size_t i = 0; i < blocksCount; i++) {
|
||||
blocks.push_back(i);
|
||||
}
|
||||
for (size_t i = 0; i < indices->countBlockDefs(); i++) {
|
||||
blockNames.push_back(indices->getBlockDef(i)->name);
|
||||
}
|
||||
|
||||
for (size_t i = indices->countBlockDefs(); i < blocksCount; i++) {
|
||||
blockNames.push_back("");
|
||||
}
|
||||
}
|
||||
|
||||
ContentLUT* ContentLUT::create(const path& filename,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue