mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
hud.get_block_inventory and inventory.move
This commit is contained in:
parent
cbdc151373
commit
0dc3ab50a2
7 changed files with 79 additions and 1 deletions
|
|
@ -564,3 +564,10 @@ void Hud::setPause(bool pause) {
|
|||
Player* Hud::getPlayer() const {
|
||||
return player;
|
||||
}
|
||||
|
||||
std::shared_ptr<Inventory> Hud::getBlockInventory() {
|
||||
if (blockUI == nullptr) {
|
||||
return nullptr;
|
||||
}
|
||||
return blockUI->getInventory();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue