small fix
This commit is contained in:
@@ -73,7 +73,6 @@ std::shared_ptr<UINode> create_debug_panel(
|
|||||||
L" visible: "+std::to_wstring(level->chunks->visible);
|
L" visible: "+std::to_wstring(level->chunks->visible);
|
||||||
}));
|
}));
|
||||||
panel->add(create_label([=](){
|
panel->add(create_label([=](){
|
||||||
auto* indices = level->content->getIndices();
|
|
||||||
std::wstringstream stream;
|
std::wstringstream stream;
|
||||||
stream << "r:" << player->selectedVoxel.state.rotation << " s:"
|
stream << "r:" << player->selectedVoxel.state.rotation << " s:"
|
||||||
<< player->selectedVoxel.state.segment << " u:"
|
<< player->selectedVoxel.state.segment << " u:"
|
||||||
|
|||||||
@@ -333,7 +333,7 @@ void Hud::openInventory(
|
|||||||
if (blockinv == nullptr) {
|
if (blockinv == nullptr) {
|
||||||
blockinv = level->inventories->createVirtual(blockUI->getSlotsCount());
|
blockinv = level->inventories->createVirtual(blockUI->getSlotsCount());
|
||||||
}
|
}
|
||||||
level->chunks->getChunkByVoxel(block.x, block.y, block.z)->flags.unsaved;
|
level->chunks->getChunkByVoxel(block.x, block.y, block.z)->flags.unsaved = true;
|
||||||
blockUI->bind(blockinv, content);
|
blockUI->bind(blockinv, content);
|
||||||
blockPos = block;
|
blockPos = block;
|
||||||
currentblockid = level->chunks->get(block.x, block.y, block.z)->id;
|
currentblockid = level->chunks->get(block.x, block.y, block.z)->id;
|
||||||
|
|||||||
Reference in New Issue
Block a user