cleanup: use Integer#parseInt where applicable

This commit is contained in:
P0nk
2021-04-08 07:40:42 +02:00
parent 7ff8190977
commit 8aa44711e3
8 changed files with 19 additions and 25 deletions

View File

@@ -281,7 +281,7 @@ public class MapleLifeFactory {
private static void decodeElementalString(MapleMonsterStats stats, String elemAttr) {
for (int i = 0; i < elemAttr.length(); i += 2) {
stats.setEffectiveness(Element.getFromChar(elemAttr.charAt(i)), ElementalEffectiveness.getByNumber(Integer.valueOf(String.valueOf(elemAttr.charAt(i + 1)))));
stats.setEffectiveness(Element.getFromChar(elemAttr.charAt(i)), ElementalEffectiveness.getByNumber(Integer.parseInt(String.valueOf(elemAttr.charAt(i + 1)))));
}
}