mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
fix msvc build
This commit is contained in:
parent
2d7d03efbb
commit
c454c095a0
1 changed files with 2 additions and 2 deletions
|
|
@ -31,8 +31,8 @@ std::unique_ptr<dynamic::Map> Structure::serialize() const {
|
|||
|
||||
auto& voxelsArr = root->putList("voxels");
|
||||
for (size_t i = 0; i < voxels.size(); i++) {
|
||||
voxelsArr.put(voxels[i].id);
|
||||
voxelsArr.put(blockstate2int(voxels[i].state));
|
||||
voxelsArr.put(static_cast<integer_t>(voxels[i].id));
|
||||
voxelsArr.put(static_cast<integer_t>(blockstate2int(voxels[i].state)));
|
||||
}
|
||||
return root;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue