forked from SteamWar/SteamWar
Fix AutoChecker only counts filled Dispenser
This commit is contained in:
@@ -73,10 +73,13 @@ public class AutoChecker {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
result.getBlockCounts().merge(material, 1, Integer::sum);
|
|
||||||
|
|
||||||
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, 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) {
|
||||||
|
result.getBlockCounts().merge(material, 1, Integer::sum);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
result.getBlockCounts().merge(material, 1, Integer::sum);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (x == min.x() || x == max.x() || y == max.y() || z == min.z() || z == max.z()) {
|
if (x == min.x() || x == max.x() || y == max.y() || z == min.z() || z == max.z()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user