Fix item parser economy regex.

This commit is contained in:
garbagemule
2014-01-25 15:43:16 +01:00
parent 619f07f11b
commit d0bb31b53d
@@ -151,7 +151,7 @@ public class ItemParser
}
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));
int major = (int) amount;