Fix the ? item recognition

This commit is contained in:
Andrzej Pomirski 2014-04-21 17:08:31 +02:00
parent 11ffd64952
commit c403c1736f
1 changed files with 1 additions and 1 deletions

View File

@ -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);