Sometimes bad floats.
This commit is contained in:
1 parent
ed09bffc87
commit
462f6725b6
1 file changed
+1
-1
@@ -95,7 +95,7 @@ public class PowersParser {
|
||||
powerEntry.costType = iterator.next();
|
||||
powerEntry.cost = Float.parseFloat(iterator.next());
|
||||
powerEntry.difficulty = Float.parseFloat(iterator.next());
|
||||
powerEntry.precision = Float.parseFloat(iterator.next());
|
||||
powerEntry.precision = Float.parseFloat(iterator.next().replaceAll("(\\.0)+$", ""));
|
||||
powerEntry.init_time = Float.parseFloat(iterator.next());
|
||||
powerEntry.release_time = Float.parseFloat(iterator.next());
|
||||
powerEntry.recycle_time = Float.parseFloat(iterator.next());
|
||||
|
||||
Reference in new issue
Block a user