diff --git a/core/src/ru/deadsoftware/cavecraft/game/GameProc.java b/core/src/ru/deadsoftware/cavecraft/game/GameProc.java
index 8f5dca275d9b6c3fd3c8e3402cf5212f09cbbdb8..5ba62a2e1307fc7dd16e0169dc0624960ce46217 100644 (file)
if (touchDownButton== Input.Buttons.RIGHT) {
world.placeToBackground(cursorX, cursorY,
player.inventory[invSlot]);
- } else if (touchDownButton==Input.Buttons.LEFT &&
- touchDownY< Assets.invBar.getRegionHeight() &&
+ } else if (touchDownY< Assets.invBar.getRegionHeight() &&
touchDownX>renderer.camera.viewportWidth/2-Assets.invBar.getRegionWidth()/2 &&
touchDownX<renderer.camera.viewportWidth/2+Assets.invBar.getRegionWidth()/2) {
CaveGame.STATE = AppState.GAME_CREATIVE_INV;