Fix the ? item recognition

This commit is contained in:
Andrzej Pomirski 2014-04-21 17:08:31 +02:00
parent 11ffd64952
commit c403c1736f

View File

@ -36,7 +36,7 @@ public class ItemChecker implements Listener {
boolean foundItem = false; boolean foundItem = false;
if (Properties.ALLOW_AUTO_ITEM_FILL && itemCode.equals(AUTOFILL_CODE) && uBlock.findConnectedChest(event.getSign()) != null) { 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)) { if (!MaterialUtil.isEmpty(stack)) {
item = stack; item = stack;
itemCode = MaterialUtil.getSignName(stack); itemCode = MaterialUtil.getSignName(stack);