From 45d98f86826d367e1ff2d11ce513af86d4acacf9 Mon Sep 17 00:00:00 2001 From: Gunging Date: Tue, 9 Mar 2021 22:51:32 -0600 Subject: [PATCH] Fixed upgrading levels to over +10 bugging out the name. --- src/main/java/net/Indyuce/mmoitems/stat/DisplayName.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/Indyuce/mmoitems/stat/DisplayName.java b/src/main/java/net/Indyuce/mmoitems/stat/DisplayName.java index 52fd5287..99720dfb 100644 --- a/src/main/java/net/Indyuce/mmoitems/stat/DisplayName.java +++ b/src/main/java/net/Indyuce/mmoitems/stat/DisplayName.java @@ -43,7 +43,7 @@ public class DisplayName extends StringStat { // Bake old indices for removal ArrayList oldSuffixii = new ArrayList<>(); boolean negativity = false; if (upgradeLevel < 0) { upgradeLevel = -upgradeLevel; negativity = true; } - for (int i = 1; i <= upgradeLevel + 3; i++) { + for (int i = upgradeLevel + 3; i >= 1; i--) { if (negativity) { oldSuffixii.add(suffix.replace("#lvl#", String.valueOf(-i))); } else {