forked from SteamWar/SteamWar
Fix PullRequest comment
This commit is contained in:
@@ -73,9 +73,11 @@ public class AutoChecker {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BlockPos pos = new BlockPos(x, y, z);
|
||||||
|
|
||||||
if (AutoCheckerItems.impl.getInventoryMaterials().contains(material)) {
|
if (AutoCheckerItems.impl.getInventoryMaterials().contains(material)) {
|
||||||
checkInventory(result, block, material, new BlockPos(x, y, z), type);
|
checkInventory(result, block, material, pos, type);
|
||||||
if (result.getDispenserItems().get(new BlockPos(x, y, z)) != null && result.getDispenserItems().get(new BlockPos(x, y, z)) > 0) {
|
if (result.getDispenserItems().getOrDefault(pos, 0) > 0) {
|
||||||
result.getBlockCounts().merge(material, 1, Integer::sum);
|
result.getBlockCounts().merge(material, 1, Integer::sum);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user