hud.get_block_inventory and inventory.move

This commit is contained in:
MihailRis
2024-04-03 20:50:26 +03:00
parent cbdc151373
commit 0dc3ab50a2
7 changed files with 79 additions and 1 deletions
+7
View File
@@ -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();
}