aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/utils/Utils.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-07-05 11:44:21 -0400
committerbowser0000 <bowser0000@gmail.com>2021-07-05 11:44:21 -0400
commit17d42cffb8264a604e93052ee146887ae7fd32cb (patch)
tree993cb0f0784fc432c0c7f7baa61a3a52e36964f8 /src/main/java/me/Danker/utils/Utils.java
parent647728fb3945fa4c3ac5e74026343d1a4d5024a7 (diff)
downloadSkyblockMod-17d42cffb8264a604e93052ee146887ae7fd32cb.tar.gz
SkyblockMod-17d42cffb8264a604e93052ee146887ae7fd32cb.tar.bz2
SkyblockMod-17d42cffb8264a604e93052ee146887ae7fd32cb.zip
More skill fixes
Diffstat (limited to 'src/main/java/me/Danker/utils/Utils.java')
-rw-r--r--src/main/java/me/Danker/utils/Utils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/me/Danker/utils/Utils.java b/src/main/java/me/Danker/utils/Utils.java
index b828146..e2dde4b 100644
--- a/src/main/java/me/Danker/utils/Utils.java
+++ b/src/main/java/me/Danker/utils/Utils.java
@@ -578,7 +578,7 @@ public class Utils {
if (!romanNumerals.containsKey(text.charAt(i))) continue;
int roman = romanNumerals.get(text.charAt(i));
- if (i != text.length() - 1 && roman < romanNumerals.get(text.charAt(i + 1))) {
+ if (i != text.length() - 1 && romanNumerals.containsKey(text.charAt(i + 1)) && roman < romanNumerals.get(text.charAt(i + 1))) {
number += romanNumerals.get(text.charAt(i + 1)) - roman;
i++;
} else {