Fix farmable IMC to accept negative meta (wildcard)

This commit is contained in:
mezz committed 2015-08-15 22:12:04 -07:00
1 parent 56c06ab6ed
commit d924483fbb
1 file changed
+1 -1
@@ -201,7 +201,7 @@ public class PluginFarming extends ForestryPlugin {
String itemString = tokens[1];
Matcher matcher = Pattern.compile("(.+?)\\.([0-9][0-9]?)(?:\\.(.+?)\\.([0-9][0-9]?))?").matcher(itemString);
Matcher matcher = Pattern.compile("(.+?)\\.(-?[0-9][0-9]?)(?:\\.(.+?)\\.(-?[0-9][0-9]?))?").matcher(itemString);
if (!matcher.matches()) {
Proxies.log.warning("%s For farm '%s': unable to parse string.", errormsg, tokens[0]);
return true;