Condition fix

This commit is contained in:
2024-08-19 15:24:28 -04:00
parent f3578f82e6
commit 00aa06c5f1
+2
View File
@@ -289,12 +289,14 @@ public class PowersParser {
// Parse power conditions
if (conditionString.toString().isEmpty() == false) {
String[] conditions = conditionString.toString().split("\n");
for (String condition : conditions) {
String[] parameters = condition.trim().split("\\s+");
powerEntry.conditions.put(parameters[0], Float.parseFloat(parameters[1]));
}
}
} catch (Exception e) {
Logger.error(powerEntry.power_id + " " + e);