Fix item parser economy regex.
This commit is contained in:
1 parent
619f07f11b
commit
d0bb31b53d
1 file changed
+1
-1
@@ -151,7 +151,7 @@ public class ItemParser
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static ItemStack singleItem(String item) {
|
private static ItemStack singleItem(String item) {
|
||||||
if (item.matches("\\$([1-9]|([0-9].[0-9]))[0-9]*")) {
|
if (item.matches("\\$(([1-9]\\d*)|(\\d*.\\d\\d?))")) {
|
||||||
double amount = Double.parseDouble(item.substring(1));
|
double amount = Double.parseDouble(item.substring(1));
|
||||||
|
|
||||||
int major = (int) amount;
|
int major = (int) amount;
|
||||||
|
|||||||
Reference in new issue
Block a user