forked from SteamWar/SteamWar
Merge pull request 'fix: windcharge check' (#318) from fix/mssing-string-get into main
Reviewed-on: SteamWar/SteamWar#318 Reviewed-by: Chaoscaot <max@chaoscaot.de>
This commit is contained in:
+1
-1
@@ -103,7 +103,7 @@ public class AutoChecker21 implements AutoChecker.IAutoChecker {
|
|||||||
if (itemType == null) // Leere Slots
|
if (itemType == null) // Leere Slots
|
||||||
continue;
|
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");
|
windChargeCount += item.getInt("count");
|
||||||
}
|
}
|
||||||
else if (!itemsInInv.getOrDefault(itemType, EnumSet.noneOf(Material.class)).contains(material)) {
|
else if (!itemsInInv.getOrDefault(itemType, EnumSet.noneOf(Material.class)).contains(material)) {
|
||||||
|
|||||||
+1
-1
@@ -64,7 +64,7 @@ public class AutoCheckerResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isWindchargeCountOK() {
|
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);
|
int windChargesCount = blockScanResult.getWindChargeCount().values().stream().reduce(Integer::sum).orElse(0);
|
||||||
return windChargesCount <= 2048;
|
return windChargesCount <= 2048;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user