mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
refactor dynamic_util
This commit is contained in:
parent
5aa1ef52f0
commit
e0a14c9c16
3 changed files with 7 additions and 13 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(static_cast<integer_t>(voxels[i].id));
|
||||
voxelsArr.put(static_cast<integer_t>(blockstate2int(voxels[i].state)));
|
||||
voxelsArr.put(voxels[i].id);
|
||||
voxelsArr.put(blockstate2int(voxels[i].state));
|
||||
}
|
||||
return root;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue