[cavedroid.git] / core / src / ru / deadsoftware / cavedroid / game / ui / windows / GameWindowsManager.kt
diff --git a/core/src/ru/deadsoftware/cavedroid/game/ui/windows/GameWindowsManager.kt b/core/src/ru/deadsoftware/cavedroid/game/ui/windows/GameWindowsManager.kt
index 56d92d6f8a8de8f7dd381f7971eba99d08565a0c..05c8a9b25b24dcb72a1d985869e9fd63b4285189 100644 (file)
fun openInventory() {
if (mobsController.player.gameMode == 1) {
- currentWindow = CreativeInventoryWindow(GameUiWindow.CREATIVE_INVENTORY)
+ currentWindow = CreativeInventoryWindow()
} else {
- currentWindow = SurvivalInventoryWindow(GameUiWindow.SURVIVAL_INVENTORY)
+ currentWindow = SurvivalInventoryWindow()
}
}
fun openCrafting() {
- currentWindow = CraftingInventoryWindow(GameUiWindow.CRAFTING_TABLE)
+ currentWindow = CraftingInventoryWindow()
}
fun closeWindow() {