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:
2026-05-01 12:30:42 +02:00
2 changed files with 2 additions and 2 deletions
@@ -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)) {
@@ -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;
}