mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-23 18:45:31 +01:00
Fix the ? item recognition
This commit is contained in:
parent
11ffd64952
commit
c403c1736f
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user