mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-01-09 16:47:36 +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 {
|
try {
|
||||||
BigDecimal price = new BigDecimal(part);
|
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;
|
return NO_PRICE;
|
||||||
} else {
|
} else {
|
||||||
return price;
|
return price;
|
||||||
|
Loading…
Reference in New Issue
Block a user