diff --git a/core/src/ru/deadsoftware/cavecraft/game/GameProc.java b/core/src/ru/deadsoftware/cavecraft/game/GameProc.java
index e091494daeec99d256544ad78bd7f22daffdf95a..3117cde54273bfac17de2cbf6dee429629c42b90 100644 (file)
public transient GamePhysics physics;
public int curX, curY;
- public int invSlot;
+ public int slot;
public int ctrlMode;
public int creativeScroll, maxCreativeScroll;
public int blockDmg = 0;
if (isTouchDown && TimeUtils.timeSinceMillis(touchDownTime) > 500) {
if (touchDownBtn == Input.Buttons.RIGHT) {
- useItem(curX, curY, player.inventory[invSlot], true);
+ useItem(curX, curY, player.inv[slot], true);
isTouchDown = false;
} else if (touchDownY < Assets.invBar.getRegionHeight() &&
touchDownX > renderer.getWidth() / 2 - Assets.invBar.getRegionWidth() / 2 &&