Added support for infinite itemstacks.
This commit is contained in:
Binary file not shown.
@@ -173,7 +173,7 @@ public class ItemParser
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static int getAmount(String amount) {
|
private static int getAmount(String amount) {
|
||||||
if (amount.matches("[1-9][0-9]*")) {
|
if (amount.matches("(-)?[1-9][0-9]*")) {
|
||||||
return Integer.parseInt(amount);
|
return Integer.parseInt(amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user