From 51a0813473785364c4bc6a343997b3ff638d32d3 Mon Sep 17 00:00:00 2001 From: Eric Date: Sun, 30 Jul 2017 13:11:12 +0200 Subject: [PATCH] Fixed shop info item when in off hand --- .../de/epiceric/shopchest/listeners/ShopInteractListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/epiceric/shopchest/listeners/ShopInteractListener.java b/src/main/java/de/epiceric/shopchest/listeners/ShopInteractListener.java index 5cf690a..967bb74 100644 --- a/src/main/java/de/epiceric/shopchest/listeners/ShopInteractListener.java +++ b/src/main/java/de/epiceric/shopchest/listeners/ShopInteractListener.java @@ -415,7 +415,7 @@ public class ShopInteractListener implements Listener { if (e.getAction() == Action.RIGHT_CLICK_BLOCK || e.getAction() == Action.LEFT_CLICK_BLOCK) { ItemStack item = Utils.getItemInMainHand(p); if (item == null || !(infoItem.getType() == item.getType() && infoItem.getDurability() == item.getDurability())) { - item = Utils.getItemInMainHand(p); + item = Utils.getItemInOffHand(p); if (item != null && infoItem.getType() == item.getType() && infoItem.getDurability() == item.getDurability()) { e.setCancelled(true); info(p, shop);