DEADSOFTWARE

Inventory class
[cavedroid.git] / core / src / ru / deadsoftware / cavedroid / game / input / handler / mouse / SelectCraftingInventoryItemMouseInputHandler.kt
index 7005a679ebf87566e9a7bb1e74e94c8c30e8946b..4395337b1101bc2ec3ea5f22ba5ffbe1523ce8ec 100644 (file)
@@ -74,9 +74,9 @@ class SelectCraftingInventoryItemMouseInputHandler @Inject constructor(
         }
 
         if (action.actionKey is MouseInputActionKey.Left || action.actionKey is MouseInputActionKey.Touch) {
-            onLeftCLick(mobsController.player.inventory, window, itemIndex)
+            onLeftCLick(mobsController.player.inventory.items as MutableList<InventoryItem?>, window, itemIndex)
         } else {
-            onRightClick(mobsController.player.inventory, window, itemIndex)
+            onRightClick(mobsController.player.inventory.items as MutableList<InventoryItem?>, window, itemIndex)
         }
 
         Gdx.app.debug(