forked from SteamWar/SteamWar
Add left out name get
This commit is contained in:
+1
-1
@@ -103,7 +103,7 @@ public class AutoChecker21 implements AutoChecker.IAutoChecker {
|
||||
if (itemType == null) // Leere Slots
|
||||
continue;
|
||||
|
||||
if(type.Schematic.Type.equals("wargearseason26") && material == Material.DISPENSER && itemType == Material.WIND_CHARGE) {
|
||||
if(type.Schematic.Type.getName().equals("wargearseason26") && material == Material.DISPENSER && itemType == Material.WIND_CHARGE) {
|
||||
windChargeCount += item.getInt("count");
|
||||
}
|
||||
else if (!itemsInInv.getOrDefault(itemType, EnumSet.noneOf(Material.class)).contains(material)) {
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ public class AutoCheckerResult {
|
||||
}
|
||||
|
||||
public boolean isWindchargeCountOK() {
|
||||
if(type.Schematic.Type.equals("wargearseason26")) {
|
||||
if( type.Schematic.Type.getName().equals("wargearseason26")) {
|
||||
int windChargesCount = blockScanResult.getWindChargeCount().values().stream().reduce(Integer::sum).orElse(0);
|
||||
return windChargesCount <= 2048;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user