mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-01-08 08:08:05 +01:00
Allow 0 for a free shop (Resolves #297)
This commit is contained in:
parent
8e6bc01d97
commit
7fbf50cefe
@ -41,7 +41,7 @@ public class PriceUtil {
|
||||
try {
|
||||
BigDecimal price = new BigDecimal(part);
|
||||
|
||||
if (price.compareTo(MAX) > 0 || price.compareTo(BigDecimal.ZERO) <= 0) {
|
||||
if (price.compareTo(MAX) > 0 || price.compareTo(BigDecimal.ZERO) < 0) {
|
||||
return NO_PRICE;
|
||||
} else {
|
||||
return price;
|
||||
|
Loading…
Reference in New Issue
Block a user