diff --git a/SchematicSystem/src/de/steamwar/schematicsystem/autocheck/AutoChecker.java b/SchematicSystem/src/de/steamwar/schematicsystem/autocheck/AutoChecker.java index aaf0aa85..19ab4247 100644 --- a/SchematicSystem/src/de/steamwar/schematicsystem/autocheck/AutoChecker.java +++ b/SchematicSystem/src/de/steamwar/schematicsystem/autocheck/AutoChecker.java @@ -73,9 +73,11 @@ public class AutoChecker { continue; } + BlockPos pos = new BlockPos(x, y, z); + if (AutoCheckerItems.impl.getInventoryMaterials().contains(material)) { - checkInventory(result, block, material, new BlockPos(x, y, z), type); - if (result.getDispenserItems().get(new BlockPos(x, y, z)) != null && result.getDispenserItems().get(new BlockPos(x, y, z)) > 0) { + checkInventory(result, block, material, pos, type); + if (result.getDispenserItems().getOrDefault(pos, 0) > 0) { result.getBlockCounts().merge(material, 1, Integer::sum); } } else {