mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-14 01:04:12 +00:00
Fix farmable IMC to accept negative meta (wildcard)
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user