Skip to content

Commit

Permalink
Fix conversion to roman numbers
Browse files Browse the repository at this point in the history
Fixes #779
  • Loading branch information
Brokkonaut committed Dec 27, 2019
1 parent cdee5b3 commit cdf6c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/de/diddiz/util/BukkitUtils.java
Expand Up @@ -738,7 +738,7 @@ public static TextComponent toString(ItemStack stack) {

private static String maybeToRoman(int value) {
if (value > 0 && value <= 10) {
return romanNumbers[value];
return romanNumbers[value - 1];
}
return Integer.toString(value);
}
Expand Down

0 comments on commit cdf6c1d

Please sign in to comment.