mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
fix
This commit is contained in:
parent
e0a14c9c16
commit
33531ae0a4
3 changed files with 13 additions and 7 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