Skip to content

Commit

Permalink
Changed loading of worths and levels to always upper-case keys
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Jan 14, 2022
1 parent 9466499 commit fc46ecb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -24,7 +24,7 @@ public void loadDefaultValues(SuperiorSkyblockPlugin plugin) {
for (String key : valuesSection.getKeys(false)) {
String value = valuesSection.getString(key);
try {
setBlockValue(Key.of(key), new BigDecimal(value));
setBlockValue(Key.of(key.toUpperCase()), new BigDecimal(value));
} catch (Exception ex) {
SuperiorSkyblockPlugin.log("&cInvalid level value: " + value);
PluginDebugger.debug(ex);
Expand Down
Expand Up @@ -30,7 +30,7 @@ public void loadDefaultValues(SuperiorSkyblockPlugin plugin) {
for (String key : valuesSection.getKeys(false)) {
String value = valuesSection.getString(key);
try {
setBlockValue(Key.of(key), new BigDecimal(value));
setBlockValue(Key.of(key.toUpperCase()), new BigDecimal(value));
} catch (Exception ex) {
SuperiorSkyblockPlugin.log("&cInvalid worth value: " + value);
PluginDebugger.debug(ex);
Expand Down

0 comments on commit fc46ecb

Please sign in to comment.