mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-12-29 11:27:51 +01:00
Fix negative prices
This commit is contained in:
parent
919b9728f5
commit
47dc473163
@ -33,7 +33,7 @@ public class PriceUtil {
|
||||
if (NumberUtil.isDouble(part)) {
|
||||
double price = Double.valueOf(part);
|
||||
|
||||
if (price == 0) {
|
||||
if (price <= 0) {
|
||||
return NO_PRICE;
|
||||
} else {
|
||||
return price;
|
||||
|
Loading…
Reference in New Issue
Block a user