From c403c1736f2ba4fbfdedde1ea28c3aedb4f6c2df Mon Sep 17 00:00:00 2001 From: Andrzej Pomirski Date: Mon, 21 Apr 2014 17:08:31 +0200 Subject: [PATCH] Fix the ? item recognition --- .../ChestShop/Listeners/PreShopCreation/ItemChecker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/Acrobot/ChestShop/Listeners/PreShopCreation/ItemChecker.java b/src/main/java/com/Acrobot/ChestShop/Listeners/PreShopCreation/ItemChecker.java index ab3da0e..01adbc2 100644 --- a/src/main/java/com/Acrobot/ChestShop/Listeners/PreShopCreation/ItemChecker.java +++ b/src/main/java/com/Acrobot/ChestShop/Listeners/PreShopCreation/ItemChecker.java @@ -36,7 +36,7 @@ public class ItemChecker implements Listener { boolean foundItem = false; if (Properties.ALLOW_AUTO_ITEM_FILL && itemCode.equals(AUTOFILL_CODE) && uBlock.findConnectedChest(event.getSign()) != null) { - for (ItemStack stack : uBlock.findConnectedChest(event.getSign()).getBlockInventory().getContents()) { + for (ItemStack stack : uBlock.findConnectedChest(event.getSign()).getInventory().getContents()) { if (!MaterialUtil.isEmpty(stack)) { item = stack; itemCode = MaterialUtil.getSignName(stack);