mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-12-29 11:27:51 +01:00
Fixed MaxPrice
This commit is contained in:
parent
7a3078aedc
commit
a71b56e1f7
@ -45,7 +45,7 @@ public class MaxPrice {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static double getPrice(Price price, int itemID) {
|
public static double getPrice(Price price, int itemID) {
|
||||||
String node = "max-" + price + "-price" + (itemID > 0 ? '-' + itemID : "");
|
String node = "max-" + price + "-price" + (itemID > 0 ? "-" + itemID : "");
|
||||||
return Config.exists(node) ? Config.getDouble(node) : Double.MAX_VALUE;
|
return Config.exists(node) ? Config.getDouble(node) : Double.MAX_VALUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user