mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
added hud.get_second_inventory
This commit is contained in:
parent
2cec6c3f9a
commit
cb1b113181
4 changed files with 25 additions and 0 deletions
|
|
@ -725,6 +725,16 @@ std::shared_ptr<Inventory> Hud::getBlockInventory() {
|
|||
return blockUI->getInventory();
|
||||
}
|
||||
|
||||
std::shared_ptr<Inventory> Hud::getSecondInventory() {
|
||||
if (blockUI) {
|
||||
return blockUI->getInventory();
|
||||
}
|
||||
if (secondInvView) {
|
||||
return secondInvView->getInventory();
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bool Hud::isContentAccess() const {
|
||||
return showContentPanel;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue