Skip to content

Commit 5d8d286

Browse files
Fix maximumDigitsInPrice not working
It should have extra # in formatting
1 parent 36f00a7 commit 5d8d286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/maxgamer/quickshop/shop/SimplePriceLimiter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public SimplePriceLimiter(QuickShop plugin) {
6565
private DecimalFormat getDecimalFormat() {
6666
if (decimalFormat == null) {
6767
StringBuilder builder = new StringBuilder("#.");
68-
for (int i = 0; i <= maximumDigitsInPrice; i++) {
68+
for (int i = 0; i <= (maximumDigitsInPrice + 1); i++) {
6969
builder.append("#");
7070
}
7171
decimalFormat = new DecimalFormat(builder.toString());

0 commit comments

Comments
 (0)