|
|
|
@ -289,11 +289,13 @@ public class PowersParser {
@@ -289,11 +289,13 @@ public class PowersParser {
|
|
|
|
|
|
|
|
|
|
// Parse power conditions
|
|
|
|
|
|
|
|
|
|
String[] conditions = conditionString.toString().split("\n"); |
|
|
|
|
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])); |
|
|
|
|
for (String condition : conditions) { |
|
|
|
|
String[] parameters = condition.trim().split("\\s+"); |
|
|
|
|
powerEntry.conditions.put(parameters[0], Float.parseFloat(parameters[1])); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|